JavaScript Assignment Operator

Assign values to variables using the assignment operator.

Preview

Code

<script>
let x = 10;
x = x + 5;

console.log("New value:", x);
</script>

More JS Operators Examples (7)