Exploring '++' operations in JavaScript

Report a typo

Given the JavaScript code snippet:

let x = 5;
let y = x++;
let z = ++x;

What are the values of y and z after these operations and why?

Select one option from the list
___

Create a free account to access the full topic