GithubHelp home page GithubHelp logo

checkpoint-00's Introduction

Checkpoint 00

Fork and clone this repo and follow the directions below.

For the following quiz, there will be a series of questions or directions followed by answer goes here. You'll replace answer goes here with your answer between the triple back ticks ( ``` ). When you're done, submit this updated file as a pull request to this repo.

Please reference this document for more information on how to submit this checkpoint.

Javascript Variables and Data Structures

Question 1

Create a variable and store the string "pizza" in it...

var box = "pizza";

For questions 2-5, use the code below to answer questions 2 through 4.

var names = ["Jonas", "Inigo Montoya", "Slim Shady", "Mr. Robot"];
var clown = {
  name: "Joker",
  evil: true,
  minions: ["Bozo", "Harley Quinn", "Grumpy", "Chuckles"],
  enemy: {
    name: "Batman",
    evil: false,
    minions: ["Robin", "Alfred"]  
  }
};

Question 2

Access the value "Jonas" out of the names array...

names[0]

Question 3

Write a for loop that prints hello NAME to the console. NAME should be replaced with a name that appears in the names array. Each iteration of the loop should print a different name.

for ( i = 0; i < names.length; i += 1); {
console.log("hello " + names[i]);
}

Question 4

Access the value "Alfred" out of the clown object...

clown.minions[1];

Question 5

Set a new property on the object stored in the variable clown. Make it anything you want!

clown.ride = "Bat Mobile";

Question 6

Write a function that takes an array as an argument and returns the array's first value...

names[0]

Git & GitHub

Question 7

What is Git, what problem does it solve? What is the difference between Git and Github?

Git is the local repository that exists on the user's computer and allows the user to easily store multiple versions of a document. Github is an online repository that allows the user to both store and share repositories with other users.

Question 8

What is the difference between a fork and a clone?

Clone creates a repository in a new directory. A fork allows the user to take an existing repository and push it to the users personal repository.

HTML & CSS

Question 9

How would you link a CSS file entitled hardstyle.css in an HTML file?

 <link href="hardstyle.css" rel="stylesheet" type="text/css">

For Questions 10 & 11 use the code example below...

<body>
  <div id="dog-resume">
    <ul class="skillz">
      <li> - Bone Location</li>
      <li> - Remote Sniffing</li>
      <li> - Delineating Territory</li>
      <li> - Shoe Deconstruction </li>
      <li> - Carpet Stain Placement </li>
    </ul>
  </div>
</body>

Question 10

Write a CSS selector that will apply styling to an element with an id of dog-resume...

.styled {
  background-color: yellow;
}
document.getElementById("dog-resume").className = "styled";

Question 11

Write a CSS selector-rule that will select and apply styling to every <li> inside of a <ul>:

.styled {
  background-color: yellow;
}
document.getElementsByTagName("li").className = "styled";

checkpoint-00's People

Contributors

amaseda avatar andrewsunglaekim avatar superbuggy avatar scottpiercew avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.