Answers for "node js object destructuring"

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
0

js-destructuring

const getTemperature = ({ celsius = 15 } = {}) => celsius;
Posted by: Guest on September-30-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language