Answers for "destructured object"

3

destructured object

let renseignement = ['voleur' , '10' , 'spécialité'] ;


let [classe , force, magie] = renseignement ;

console.log(classe) ;
console.log(force) ;
console.log(magie) ;
Posted by: Guest on March-16-2020
-1

destructuring Object in JavaScript

let {name, country, job} = {name: "Sarah", country: "Nigeria", job: "Developer"};

console.log(name);//"Sarah"
console.log(country);//"Nigeria"
console.log(job);//Developer"
Posted by: Guest on May-25-2021

Code answers related to "destructured object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language