A Pen by ClaudiaInBytes on CodePen.
A Pen by ClaudiaInBytes on CodePen.
A Pen by ClaudiaInBytes on CodePen.
A Pen by ClaudiaInBytes on CodePen.
A Pen by ClaudiaInBytes on CodePen.
A Pen by ClaudiaInBytes on CodePen.
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
/* | |
* Programming Quiz: What do I Wear? (3-7) | |
*/ | |
// change the values of `shirtWidth`, `shirtLength`, and `shirtSleeve` to test your code | |
var shirtWidth = 18; | |
var shirtLength = 29; | |
var shirtSleeve = 8.47; | |
// your code goes here |
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
/* | |
* Programming Quiz - Navigating the Food Chain (3-8) | |
* | |
* Use a series of ternary operator to set the category to one of the following: | |
* - "herbivore" if an animal eats plants | |
* - "carnivore" if an animal eats animals | |
* - "omnivore" if an animal eats plants and animals | |
* - undefined if an animal doesn't eat plants or animals | |
* | |
* Notes |
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
/* | |
* Programming Quiz: JuliaJames (4-1) | |
*/ | |
var x = 1; | |
while ( x <= 20) { | |
// check divisibility | |
if(( x % 3 === 0 ) && ( x % 5 === 0)){ | |
console.log("JuliaJames"); |
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
/* | |
* Programming Quiz: 99 Bottles of Juice (4-2) | |
* | |
* Use the following `while` loop to write out the song "99 bottles of juice". | |
* Log the your lyrics to the console. | |
* | |
* Note | |
* - Each line of the lyrics needs to be logged to the same line. | |
* - The pluralization of the word "bottle" changes from "2 bottles" to "1 bottle" to "0 bottles". | |
*/ |
OlderNewer