Very simple JS

ok, i know i ask too many questions, but i am getting a book on JS this weekend so it will all be over soon.

my question this time is, if i want more things to happen after and “if/else” satement, how do i do that? for instance:

 
var yourFeeling=prompt("'yes' or 'no'","");
 if (yourFeeling=="no")
  var yourChange=prompt("what made you feel differently?","");
 else
 if (yourFeeling=="yes")
  alert("So you still are feeling " + how_you_are);
 else
  alert("Too cool to type 'yes' or 'no?'");

if i want to make something that responds to var yourChange (I.E. alert(yourChange + " is what made your change?"); ) how do i do that? if i add anything more after any of the “if/else” things (other than more “if/else” things) the function doesn’t work.

sorry if that is confusing wording, but thanks for the help.

erm… I’m no JS guru but in any other coding language… you would need brackets { } to block it off…


var yourFeeling=prompt("'yes' or 'no'","");

if (yourFeeling=="no") {
  var yourChange=prompt("what made you feel differently?","");
}
else {
 if (yourFeeling=="yes") {
  alert("So you still are feeling " + how_you_are);
}

of course I could be wrong… but JS isn’t to much diff from other coding.