What will be printed by the following code? const nums = [1,…

Questions

Whаt will be printed by the fоllоwing cоde? const nums = [1, 2, 3, 4, 5];const output = nums.mаp(n => n*n);console.log(output);