Answers for "destructuring array js"

0

js-destructuring

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

javascript destructuring

const classDetails = {
  strength: 78,
  benches: 39,
  blackBoard:1
}

const {strength:classStrength, benches:classBenches,blackBoard:classBlackBoard} = classDetails;

console.log(classStrength); // Outputs 78
console.log(classBenches); // Outputs 39
console.log(classBlackBoard); // Outputs 1
Posted by: Guest on April-21-2021

Code answers related to "Objective-C"

Browse Popular Code Answers by Language