forked from HackYourFuture/JavaScript2
-
Notifications
You must be signed in to change notification settings - Fork 33
Homework week1 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
annagabain
wants to merge
20
commits into
foocoding:master
Choose a base branch
from
annagabain:homework-week1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
6d16904
Update VSCode settings
remarcmij 304da26
Update MAKEME.md
remarcmij c7aa57c
Correct typo
remarcmij 513ace2
Fix broken link
remarcmij a88dec3
Update MAKEME.md
NoerGitKat 90b74a5
Removed redundant and erroneous text.
remarcmij e34d7ab
classrum excercise 09 06 2019
annagabain 7bdc585
at2
annagabain 2be8472
freecodecamp excercise
annagabain 6dc778b
Solution2
annagabain 4d73148
json installs from js2 w1
annagabain 23a400b
ex app till 1.5
annagabain 200a38d
app ex till 1.5 to be continued
annagabain da911d1
del
annagabain 56f7fc6
synch
annagabain cc6a3ff
link
annagabain a851391
h
annagabain 75aba93
all in one folder fix
annagabain 28e1692
sq added
annagabain 58bf533
Rename app.js to MY-app.js
annagabain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,27 @@ | ||
| 'use strict'; | ||
|
|
||
| { | ||
| const bookTitles = [ | ||
| const favoriteGames = [ | ||
| // Replace with your own book titles | ||
| 'harry_potter_chamber_secrets', | ||
| 'call_of_the_wild', | ||
| 'the_turtle', | ||
| 'snowball_and_the_bunny_adventures', | ||
| 'chicken_little', | ||
| ]; | ||
|
|
||
| // Replace with your own code | ||
| console.log(bookTitles); | ||
| console.log(favoriteGames); | ||
| // document.body.onload = addElement; | ||
| // function displayGameTitles = () => { | ||
|
|
||
| let unorderedList = document.createElement("ul"); | ||
| for (const gameIndex in favoriteGames) { | ||
| const listItem = document.createElement("li"); | ||
| listItem.textContent = favoriteGames[gameIndex]; | ||
| unorderedList.appendChild(listItem); | ||
| } | ||
| // add the newly created element and its content into the DOM | ||
| const currentDiv = document.getElementById("gameDiv"); | ||
| document.body.insertBefore(unorderedList, currentDiv); | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,11 @@ | ||
| <!-- replace this with your HTML content --> | ||
| <!-- replace this with your HTML content --> | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <title>FavoriteBooks Excercise</title> | ||
| </head> | ||
| <body> | ||
| <script src="app.js"></script> | ||
| <div id = gameDiv></div> | ||
| </body> | ||
| </html> |
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've never played any of those games!
Need to look into it. Cool stuff 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;) good luck