javascript code checker online code example
Example 1: code checker javascript
function shourtcut(s1,s2) {
let chars1 = s1.charAt(0);
let chars2 = s2.charAt(0);
console.log(chars1 + chars2);
return chars1 + chars2;
}
Example 2: javascript code checker
var total = 0;
var limit = 10;
for (var i=0; i<limit; i++) {
total+=i
};
console.log(total);