- 2
javascript
What is the output of this code? const square = num => num * num; console.log(square(6) + 6);
7 Respuestas
+ 10
Victoria Gredics
find the square root of 6; which is 6 * 6 = 36.
Now 36 + 6 = ?
console.log(square(6) + 6)
42.
+ 1
ES6 functions
2nd tab in this lesson :
https://www.sololearn.com/learn/JavaScript/2970/
+ 1
42
+ 1
(Square(6) + 6 = 6²+6 = 42
ANSWER : 42
0
42
0
42.
0
const num = 2;
num = 6;
console.log(num);