Skip to content

Instantly share code, notes, and snippets.

What does the following code evaluate to?
var first_name = function (name) {
return name;
}
first_name("bob");
ans: "bob"
What does the following code evaluate to?
function add(x, y) {
What does the following expression return?
4 > 1;
true
What does the following expression return?
"chatty" === "chatty";
true
Perform these exercises in the JavaScript console of your favorite web browser.
What does the following expression return?
> 3 + 2;
5
What does the following expression return?
> typeof(3);
'number'
class GamesController < ApplicationController
def index
@games = Game.all
end
def new
@game = Game.new
end
.tardis {
box-sizing: border-box;
with: 651ft;
padding: 300ft;
border: 0.5ft;
margin: all_of_time_and_space;
}
.tardis {
box-sizing: border-box;
with: 50ft;
padding: 300ft;
border: 0.5ft;
margin: all_of_time_and_space;
}
.tardis {
box-sizing: padding-box;
with: 50ft;
padding: 300ft;
border: 0.5ft;
margin: all_of_time_and_space;
}
.tardis {
box-sizing: content-box;
with: 50ft;
padding: 300ft;
border: 0.5ft;
margin: all_of_time_and_space;
}
a {
background-color: #CCC;
display: block;
margin: 25px;
width: 220px;
text-align: center;
padding: 15px;
border-radius: 10px;
text-transform: uppercase;
text-decoration: none;
<div class="message"><%= @compliment.message %></div>
<div class="right-content">
<img src="<%= @compliment.image %>">
<a href="/compliments">
<div class="button">
<p>Are you still sad?</p>
</div>
</a>
</div>