- 2

javascript

What is the output of this code? const square = num => num * num; console.log(square(6) + 6);

8th Jun 2019, 12:00 AM
Victoria Gredics
Victoria Gredics - avatar
7 Réponses
+ 10
Victoria Gredics find the square root of 6; which is 6 * 6 = 36. Now 36 + 6 = ? console.log(square(6) + 6) 42.
8th Jun 2019, 12:16 AM
Jella
Jella - avatar
+ 1
ES6 functions 2nd tab in this lesson : https://www.sololearn.com/learn/JavaScript/2970/
8th Jun 2019, 2:44 AM
Gordon
Gordon - avatar
+ 1
42
24th Dec 2019, 9:13 AM
Rana Abid
Rana Abid - avatar
+ 1
(Square(6) + 6 = 6²+6 = 42 ANSWER : 42
27th Jun 2020, 2:32 PM
juumo
juumo - avatar
0
42
3rd Dec 2020, 8:06 PM
El Maslohi Hassan
0
42.
17th Dec 2020, 8:43 PM
Turikumana Isaie
Turikumana Isaie - avatar
0
const num = 2; num = 6; console.log(num);
28th Feb 2024, 9:49 AM
Vikash pukar Jha
Vikash pukar Jha - avatar