Then I modified it alittle so that if nb=nc a new alert would pop. So I proceeded to change my ELSE to an IF and added the 3rd IF condition. Being a leet jsnoob that I am the below script looks like it should work just fine, and I suppose it does when the variables are equal but if they arn't then you get two pops, either the <alert or >alert then the =alert. I don't understand why the =alert pops when it shouldn't....
<title>My first forum Post YAY</title>
var nb=prompt("Enter any random number..","");
var nc=prompt("Enter another random number...","");
alert(nb+ " is the highest number YAY");
alert(nc+ " is the highest number YAY");
alert("wtf why is this alert popping up when nb and nc are not equal? sigh");
Playing around with the code I eventually got it to work by removing the strings
+ " is the highest number YAY"
so that it just reads alert(nb) and alert(nc)
But I am really curious to know why I had to do this? Thanks in advance