본문 바로가기

salesforce certification

(43/60) A developer uses a parsed JSON string to work with user information as in the block below:01 const userInformation ={02 " id " : "user-01",03 "email" : "user01@universalcontainers.demo",04 "age" : 25Which two options access the email attribute i..

D. userInformation("email") 에서 () 를 [] 로 바꿔줘야 실행이 된다. -> userInformation["email"]

const userInformation = {
  "id" : "user-01",
  "email" : "user01@universalcontainers.demo",
  "age" : 25
}

//console.log(userInformation.get("email"));
//console.log(userInformation(email));
console.log(userInformation.email);
console.log(userInformation["email"]);

https://onecompiler.com/javascript/3ynn4pgd9

 

3ynn4pgd9 - JavaScript - OneCompiler

Javascript Online Compiler Write, Run & Share Javascript code online using OneCompiler's JS online compiler for free. It's one of the robust, feature-rich online compilers for Javascript language. Getting started with the OneCompiler's Javascript editor is

onecompiler.com