JavaScript Code Challenge 3/100 #javascript

preview_player
Показать описание
Explanation: The provided code demonstrates the use of post-increment and pre-increment operators, as well as the ternary operator. 'x' starts at 100, then is incremented to 101 with x++, and further incremented to 102 with ++x. 'y' is assigned 100. 'z' is assigned 102 and then incremented to 103 when ++z is evaluated. Since 'x' is not equal to 'y', the ternary operator assigns ++z (which is 103) to n. So, the console output will be: 103
Рекомендации по теме
join shbcf.ru