Todays assignment is a collection of small challenges designed to give you a chance to practice your JavaScript skills.
In the code
folder, you'll find a number of tasks in html files. Go through each file and follow the instructions. Links to documentation for specific tasks can be found in the comments in the task files.
- Create a Github repo.
- Upload your files to Github:
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin <Adressen till ditt repo>
git push -u origin main
Click the link in canvas and input the link to your repo repo.
Learning how to think as a web developer is learning how to be an expert in problem solving. So whenever you get stuck start with step 1 and continue until problem solved.
- Google! In English, type in the error message if there is one, search within the language you're using (ie CSS, JavaScript etc).
- Ask your code buddies.
- Ask your fellow students in Slack.
- Ask David. Please note: we are part of a sharing community - share the answer with your fellows.
After completing this assignment, you should start feeling a little more comfortable with the core concepts of the JavaScript language - variables, types, conditional statements, and functions.
In a new file, try to write a solution to the "FizzBuzz" question below (which is sometimes used in interviews, so good to know):
Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.