Topics discussed in class this week:
• Git
Here you find the readings you have to complete before the fifth lecture.
Deadline Monday
All share a video or a resource (this can be a drawing, article or a pod cast) that was helpful for you the last few weeks with learning JavaScript. Please share this in the channel of your class in Slack. Also write as small note about what the resource i about and why you think it's so helpful (you can share more than one if you like).
Deadline Monday
Your fellow students have provided you with feedback in Trello.
- Implement both feedback from Trello and Github.
- Check on one of your fellow students code and issues and see if her or she implemented their feedback correctly. If there are some things that can be improved make an issue suggesting further improvements. If you think that the feedback has been implemented correctly create a issue saying something like: "nice work you can clear your issues".
Deadline Monday
Your Github should contain two repositories called hyf-javascript1 and hyf-commandline. Inside the JavaScript repository you should have three folders, called week1, week2, and week3 (or something similar). Inside these folders you should have the different assignments (a file per exercises). Try and find proper names for the exercises that reflect somehow what is going on in the code. Avoid using spaces in your file names, this makes it harder to "run" you files. Also make sure that all your JavaScript files have a .js extension.
Deadline Wednesday
Git homework for this week:
Pair up with another student in your class. The homework requires two people to work together. Let us call them admin and user.
- admin creates a new repository on github called “animals” (without quotes).
- admin adds a file called “zoo.txt” with some animal generally found in a zoo.
- admin commits and pushes his changes (in master branch)
- admin adds user as a collaborator (find out how to add a collaborator to a git repository)
- user clones a repository from admin (find out how to clone a repository. Note that
git initis not required when you clone a repository) - user makes a new branch called user-dev
- user adds another file called “pets.txt” with some animals generally found in a home.
- user commits and pushes his branch to remote
- admin pulls the branch crated by user (find out how to pull changes from the repository)
- admin submits the link to his github repository (named animal), where unmesh should be able to see the collaborator’s (i.e. user’s) branch along with his commits.
Note:
The user is not supposed to fork the admin’s repository. admin is supposed to add user as a collaborator and user should just clone the repository (i.e. user will only have the local copy of the repository). Only admin will have the github server copy of the repository. Of course, admin will have its local copy of the repository too.
How to hand in your homework:
• Upload your homework in your "hyf-javascript1" Github repository. Make sure to create a new folder "week3" first.
• Upload your homework files inside the week3 folder and write a description for this “commit”.
• Your hyf-javascript1/week3 should now contain an index.html, main.css and a script.js file (and the images folder)
• Place the link to your repository folder in Trello.
Deadline Sunday morning
- https://www.freecodecamp.com/challenges/declare-javascript-objects-as-variables
- https://www.freecodecamp.com/challenges/make-instances-of-objects-with-a-constructor-function
- https://www.freecodecamp.com/challenges/make-unique-objects-by-passing-parameters-to-our-constructor
- https://www.freecodecamp.com/challenges/make-object-properties-private
And just for fun ... https://www.freecodecamp.com/challenges/sum-all-numbers-in-a-range
Deadline Sunday morning
Go trough the reading material in the README.md to prepare for your next class
the Bonus homework for this week (for those of you want an extra challenge) do the following:
- Sign up on codewars.com
- In you account setting under “clan” write “Hack Your Future”
- Go do the challenges in the following playlist: https://www.codewars.com/collections/fun-fun-fundamentals
Codewars is really a lot of fun, and you can compete against each other who has the most points
it’s a great way to really practice JavaScript a lot in various problems.
Please note, there are various challenges all sorted on difficultly called KIU. Kiu 8 is the easiest, Kiu 1 is the hardest, we expect you to do challenges around level 8, 7 maybe.
enjoy!
![]()
How to hand in your homework:
• Create a new repository "hyf-javascript2". Also create a new folder "week1" inside this repository.
• Upload your homework files inside the week1 folder and write a description for this “commit”.
• Your hyf-javascript2/week1 should now contain the files of your homework.
• Place the link to your repository folder in Trello.
⭐ Additional resources and review: here⭐