Skip to content

Instantly share code, notes, and snippets.

////////////////////////////////////////////////
/* Provided Code - Please Don't Edit */
////////////////////////////////////////////////
'use strict';
function getInput() {
console.log("Please choose either 'rock', 'paper', or 'scissors'.")
return prompt();
}
function randomPlay() {
Tables
Airplane
id :integer
name :string
seat_row :integer
seat_column :string
User
id :integer
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”