This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What does the following expression return? | |
4 > 1; | |
true | |
What does the following expression return? | |
"chatty" === "chatty"; | |
true | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GamesController < ApplicationController | |
def index | |
@games = Game.all | |
end | |
def new | |
@game = Game.new | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tardis { | |
box-sizing: border-box; | |
with: 651ft; | |
padding: 300ft; | |
border: 0.5ft; | |
margin: all_of_time_and_space; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tardis { | |
box-sizing: border-box; | |
with: 50ft; | |
padding: 300ft; | |
border: 0.5ft; | |
margin: all_of_time_and_space; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tardis { | |
box-sizing: padding-box; | |
with: 50ft; | |
padding: 300ft; | |
border: 0.5ft; | |
margin: all_of_time_and_space; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tardis { | |
box-sizing: content-box; | |
with: 50ft; | |
padding: 300ft; | |
border: 0.5ft; | |
margin: all_of_time_and_space; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |