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:
- Set up a git repository for the directory
git-javascript
. - Create a
README.md
file. Add the title Git JavaScript and your full name to the file. Save the file. - Add and commit the
README.md
file. Don't forget to add a message. - Create an
index.html
file and ascript.js
file. - In
index.html
, add a basic HTML structure. Add a title of Git JavaScript and add thescript.js
file to the page. - In the
script.js
, create the variablename
and set its value to your name. - Use
console.log()
and the variablename
to log the following message to the console: "Hello, my name is Your Name" replace Your Name with value from thename
variable. - Create the variable
number
and set its value to any positive integer. - Using
console.log()
and the variablenumber
, log the result of the following:- Multiply
number
by 2 - Multiply the result by 5
- Divide the result by
number
- Subtract 7 from the result
- Multiply
- Save all the files and commit them to the local repository.
- 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. - Follow the instructions on the repository page to push an existing repository from the command line.
- 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.