These are chat archives for codefellows/sea-f1-TAs/Brian

5th
Sep 2014
jongmink
@jongmink
Sep 05 2014 02:29
Hi. I'm wondering how I can see the immediate results of my javaScript code.. like Math.random();
Brian Caldwell
@Caldwerl
Sep 05 2014 02:32
Yes where are you at
jongmink
@jongmink
Sep 05 2014 02:34
I'm at the corner of the room. stripe v-neck t shirt
Ryan Christensen
@randhyllcho
Sep 05 2014 07:38
How do I add guesses to my code? I understand for and while loops but i'm really stuggling with how to add it to my existing code... Specifically where in the code that it goes?
Linda Mummy
@lindamariemummy
Sep 05 2014 17:46
@randhyllcho You can define a variable to store your guess in (something like "var userGuess;”) and then ask the user to enter their guess using the prompt command (“userGuess = prompt(string)”) If you want this to occur more than once you can enclose the prompt command in a for or while loop. Was that an answer to your question?
Ryan Christensen
@randhyllcho
Sep 05 2014 20:00
@lindamariemummy It was thanks! i just wasn't sure where the for/while loop went I'll give it a whirl when I get home.
Brian Caldwell
@Caldwerl
Sep 05 2014 20:07
@randhyllcho Sorry for the late response, had a busy morning. Glad @lindamariemummy could give you the help you needed!
Ryan Christensen
@randhyllcho
Sep 05 2014 20:12
@Caldwerl No problem! "Everyone you will ever meet, knows something you don't." -Bill Nye. I figured someone would know...