Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

example of pre increment in js

let a = 2;
b = ++a;

// a = 3
// b = 3
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #pre #increment #js
ADD COMMENT
Topic
Name
3+3 =