Skip to content

Instantly share code, notes, and snippets.

View mokyox's full-sized avatar
🐢

Mo Jama mokyox

🐢
View GitHub Profile
for (var i = 1; i <= 100; i++) {
  //If divisible by 3, print number and "Fizz"
  if (i % 3 == 0) {
    console.log( i + "Fizz");
  }
  
  //If divisible by 5, print number and "Buzz"
   else if (i % 5 == 0) {
 console.log( i + "Buzz")

Hey guys, got a problem with the Testing Objects for properties lesson. I'm trying to find a way to return all the values of the object myObj but I can't seem to find the answer online. Any ideas?


// Setup
var myObj = {
  gift: "pony",
  pet: "kitten",
 bed: "sleigh"