bin/setup
is complete, at a new Terminal prompt $
, type:[1] pry(main)>
and looks something like this:cd
into the folder; ignore that part.)rails console
again.24 × 365
, or how many hours are there in a year? HTML cannot answer this question.rails console
. Type each one after the prompt that says pry(main)>
and press return after each line, and you will see how Ruby interprets each expression on the next line after the =>
.rails console
— let's say for example that you forgot a closing parenthesis — it's possible to get into a weird state where you press return and nothing happens. It's still waiting for that closing parenthesis, and then you start typing more commands, and it gets confused, and then you get confused.#
; the stuff after are known as code comments, and are just there as notes to ourselves. They have no effect on the program.)"Hello"
over and over.s
and put in something new:=
, the variable assignment operator. Above, while doing comparisons, we used the completely and totally different double-equals sign, ==
, the logical equivalence operator. Mixing up these two operators is a very easy mistake to make, and even experienced devs make it all the time — watch out.)