swati-jagtap / javascript-practice

0 stars 0 forks source link

11.1.1-- Destructure and assign the elements of constants array to e, pi, gravity, humanBodyTemp, waterBoilingTemp. #135

Open swati-jagtap opened 3 years ago

swati-jagtap commented 3 years ago
const constants = [2.72, 3.14, 9.81, 37, 100]

let[e,pi,gravity,humanBodyTemp,waterBoilingTemp]=constants;
console.log(e,pi,gravity,humanBodyTemp,waterBoilingTemp);

image