var i = 2; var j = "4"; console.log( i + j ); code example Example: for loop javascript var i; for (i = 0; i < 10 ; i++) { //do something }