Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript Change the Value of Variables

// 5 is assigned to variable x
let x = 5; 
console.log(x); // 5

// vaue of variable x is changed
x = 3; 
console.log(x); // 3
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #JavaScript #Change #Value #Variables
ADD COMMENT
Topic
Name
6+5 =