Git JavaScript

Objective

For this assignment, you will practice what you have learned about the basics of Git and JavaScript.

Requirements

To successfully complete assignment, complete the following instructions:

  1. Set up a git repository for the directory git-javascript.
  2. Create a README.md file. Add the title Git JavaScript and your full name to the file. Save the file.
  3. Add and commit the README.md file. Don't forget to add a message.
  4. Create an index.html file and a script.js file.
  5. In index.html, add a basic HTML structure. Add a title of Git JavaScript and add the script.js file to the page.
  6. In the script.js, create the variable name and set its value to your name.
  7. Use console.log() and the variable name to log the following message to the console: "Hello, my name is Your Name" replace Your Name with value from the name variable.
  8. Create the variable number and set its value to any positive integer.
  9. Using console.log() and the variable number, log the result of the following:
    1. Multiply number by 2
    2. Multiply the result by 5
    3. Divide the result by number
    4. Subtract 7 from the result
  10. Save all the files and commit them to the local repository.
  11. Log into to GitHub and create a new public repository with the name git-javascript. Add a description, but do NOT check the box for Initialize the repository with a README.
  12. Follow the instructions on the repository page to push an existing repository from the command line.
  13. In your browser, go back to the GitHub repository and refresh the page to ensure that your changes have been pushed up.

Submission

Submit your GitHub repository's URL to the Git JavaScript assignment on BrightSpace.