I'm a complete newbie to coding, a complete blank slate.
I'm following the path described by: http://javascriptissexy.com/how-to-learn-javascript-properly/ to learn javascript in the build up for node.js.
It recommends that I play with code snippets from Javascript the Definitive Guide with jsfiddle or Firefox's browser console. I first tried the console and go nowhere with it but eventually found Scratchpad which would at least run code for confirm and prompt functions.
Concurrent to this, I'm working with Codeacademy where their console also returns answers and text. I can't jsfiddle or scratchpad to return non confirm/prompt function answer and I can't get the firefox browser console to do anything (where do I even write code?!?).
To test it, once more and make sure it's not just a Firefox thing, I cut and paste the firefox code into http://www.codeavengers.com/javascript/1#1.1 and it worked just like Codeacademy's console. What am I missing?
Please be detailed as I don't know up from down at this point. Thank you for your help, if you can still remember back to when you first started, I'm sure you know how much a little thing like this means! Here is an example of the code I used across codeavengers, code academy, jsfiddle and scratchpad:
confirm("Are you ready to play");
var age = prompt("What's your age");
if (age < 13) {console.log("You\'re allowed to play but we take no responsibility");} else {console.log("Let\'s get started");}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");
console.log("Suddenly, Beiber stops and says, 'Who wants to race me?'");
var userAnswer = prompt("Do you want to race Bieber on stage?");
if (userAnswer === "yes") {console.log("You and Bieber start racing. It's neck and neck! You win by a shoelace!");} else {console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'");}
var feedback = prompt("How do you rate this game on a scale of 1 to 10?");
if (feedback > 8) {console.log("Thank you! We should race at the next concert!");} else {console.log("I'll keep practicing coding and racing.");}