View README.md

Weekend Plan Generator

Give the user some advice on what to do this weekend!

Given the weather and day, advise these activities:

  • If it’s Saturday and it’s sunny, go for a bike ride.
  • If it’s Saturday and it’s cloudy, binge watch Netflix.
  • If it’s Sunday and it’s sunny, go to the park.
  • If it’s Sunday and it’s cloudy, go to the Natural History Museum.
View README.md

ScriptEdGram

Instagram copied Snapchat, so ScriptEd is going to copy Instagram.

Help make ScriptEdGram, by creating a conditional statement, using if, else if, and else.

Filters

We’re going to define four filters. The user types in the name of a filter to apply it.

View INSTRUCTIONS.md

Multi-Subject Quiz

Make the multi-subject quiz work correctly!

  1. Change the ? in the if/else statement for the English question so that it checks for the correct answer, which is Mon
  2. Add an if/else statement for the Math question so that it prints “Correct!” if the answer is 30, and “Wrong! Try again” otherwise.
  3. Add an if/else statement for the Social Studies question so that it prints “Correct!” if the answer is Albany, and “Wrong! Try again” otherwise.
  4. Add a click handler with an if / else statement for the Science question so that it checks for the answer solid.

If you finish early…

View Instructions.MD

This is a long line that contains some code. Note that the code has excessive line height which occludes surrounding lines.

View INSTRUCTIONS.md

Guess the value

In the JavaScript code, there are ten calls to the function guess(). In each case, the function’s first argument is a string value, and the second argument is an expression of some kind.

Your mission is to guess the value of all ten expressions. Currently, all ten guesses are just a question mark, which is not the correct answer to any question.

Change the question mark to the correct value for the expression given as the second argument to guess() in each case.

View index.html
<!DOCTYPE html>
<html>
<head>
<title>America's Pizza </title>
</head>
<body>
<img src="https://www.cicis.com/media/1138/pizza_trad_pepperoni.png" >
<img src="http://cdn-image.myrecipes.com/sites/default/files/styles/4_3_horizontal_-_1200x900/public/deep-fried-oreo-mr.jpg?itok=wtj7COMG">
<img src="http://food.fnr.sndimg.com/content/dam/images/food/fullset/2010/1/21/1/FNM_030110-Weeknight-030_s4x3.jpg.rend.hgtvcom.616.462.suffix/1382539254079.jpeg">
<img src="https://images-gmi-pmc.edge-generalmills.com/80fd8638-9b0d-4cba-ba99-9c4b75b4a20c.jpg">
View README.md

Song Picker

Your goal is to make the song picker fully work. When the title of a song is clicked:

  • That song’s album art should appear
  • The song’s title should be bold

You can check out a fully working demo.

Instructions (Part 1)

View README.md

Song Picker

Your goal is to make the song picker fully work. When the title of a song is clicked:

  • That song’s album art should appear
  • The song’s title should be bold

You can check out a fully working demo.

Instructions (Part 1)

View README.md

Song Picker

Your goal is to make the song picker fully work. When the title of a song is clicked:

  • That song’s album art should appear
  • The song’s title should be bold

You can check out a fully working demo.

Instructions (Part 1)

View localContext.js
function makeMakeEvaluateExpression() {
function makeEvaluateExpression(evalInContext) {
return function(expr) {
return evalInContext(
`({
next: makeEvaluateExpression(function(expr) { return eval(expr); }),
value: eval(${JSON.stringify(expr)})
})`,
);
};