Actually I found an answer a few minutes ago. But I found something strange.
This is my answer for 'Missing letters' in freeCodeCamp challenges.
function fearNotLetter(str) {
var string;
for (i=0;i<str.length;i++) {
if(str.charCodeAt(i)+1 < str.charCodeAt(i+1)){
string = String.fromCharCode(str.charCodeAt(i)+1);
}
}
return string;
}
When I change < operator in if statement into != (not same), it doesn't work! For me, it seems that != works exactly same as < operator does. (Because 'not same' can mean something is bigger than the other.)
What is the difference between < and != in the code above?