JSPlaygrounds
JSPlaygrounds copied to clipboard
Variable initialization will be evaluated to last valid evaluation
The problem
When I initialize a variable, the output will be the last valid expression. For example:
let x = 5;
x
let y = 8;
y
The output will be:
5
5
8