0

Need Help (JavaScript)

New to programming. Can anybody help me out with the output to this JavaScript problem? let x = 10; console.log(--x);

1st Jan 2023, 5:42 AM
AO3
2 Answers
+ 5
The operation „—x“ means that first will be decremented 1 from the variable x and after that will be outputed with console.log. So the result is 9.
1st Jan 2023, 10:08 AM
JaScript
JaScript - avatar
0
More details, the question is not clear, I don't see problems
1st Jan 2023, 6:36 AM
Артур Đ„Ń€ĐŸĐŒĐŸĐČ