js how to check correct code example
Example: javascript code checker
var total = 0;
var limit = 10;
for (var i=0; i<limit; i++) {
total+=i
};
console.log(total);
var total = 0;
var limit = 10;
for (var i=0; i<limit; i++) {
total+=i
};
console.log(total);