Question #21

Author: admin
tags: JavaScript  
function func1() { console.log('1'); return 1; }
function func2() { console.log('2'); return 2; }
function func3() { console.log('3'); return 3; }
function func4() { console.log('4'); return 4; }
function func5() { console.log('5'); return 5; }

const z = func1() + func2() * func3() + func4() ** func5();
In what order will the numbers be displayed in the console?
I remind you of operators precedence (the higher the number, the higher the priority):
14 Exponentiation (**)
13 Multiplication (*)
12 Addition (+)
1, 2, 3, 4, 5
2, 3, 4, 5, 1
2, 3, 1, 4, 5
4, 5, 2, 3, 1
1, 4, 5, 2, 3
A function call is also an operator that has one of the highest priorities - 18.
Rate the difficulty of the question:
easyhard