Baheeg Training and Test Exam

JavaScript Specialist (1D0-735)

Score: 0 / 0 answered

Progress: 0 of 1219 qs

time elap: 00:00

Question 1: What will be the output of the following code?

const arr = [1, 2, 3, 4, 5];
const result = arr.forEach(num => console.log(num * 2));
console.log(result);