First paragraph
Second paragraph
How would I execute some code each element in a collection? | |
Loop in JS | |
each loop in Ruby | |
Convention over configuration: | |
Also know as coding by convention | |
decrease the number of decisions a developer has to make | |
Common in Ruby on Rails | |
Example - if there is a table called “sales” the database is also called “sales” |
Tables | |
Airplane | |
id :integer | |
name :string | |
seat_row :integer | |
seat_column :string | |
User | |
id :integer |
//////////////////////////////////////////////// | |
/* Provided Code - Please Don't Edit */ | |
//////////////////////////////////////////////// | |
'use strict'; | |
function getInput() { | |
console.log("Please choose either 'rock', 'paper', or 'scissors'.") | |
return prompt(); | |
} | |
function randomPlay() { |
First paragraph
Second paragraph