These free mini-courses will give you a strong foundation in web development. Track your progress and access advanced courses on HTML/CSS, Ruby and JavaScript for free inside our student portal.
Scroll down...
Test your knowledge with the questions below. Make sure you can answer them before starting on the projects. All of the answers are contained in the previous lessons.
=
,==
, and ===
?3/2
? 3/2.to_f
?..
) or exclusive (...
)?object_id
method give you and why is it potentially helpful?chomp
and strip
?push
and pop
do?<<
) do to arrays?shift
and unshift
do?else
clauses required?elsif
clauses can you have?unless
?if
or unless
on a single line?case
statement?loop
work?loop
?while
work?while
loop?until
?each
do?each
return?each
pass into the block for an array? For a hash?times
work?times
block?times
return?for
loop syntax and how common is it in Ruby?loop
vs a while
vs an each
vs a times
vs a for
?return
to exit a loop?