var a = "1"; a = a + 0; a = a - 1; a = a + 1; alert(a);
var a = "1"; // string a = a + 0; // "10" the + operator concatenate the strings a = a - 1; // 9 the - operators convert string to a number a = a + 1; // 10
Login in to like
Login in to comment
or Read more about JavaScript Quizzes
Login in to like
Login in to comment