Note: There's nothing to submit for this week's homework. Just be sure to have it done before class on Tuesday.
(we will step through the homework submission process together at the start of next lesson)
starter-code
> Homework-1
> 99-bottles-of-beer
starter-code
> Homework-1
> fizzbuzz
for
loop that iterates through and console.log
s the numbers 1
- 100.if/else
statement that logs the string "fizz" if the value being iterated over
is divisible by 3; otherwise, log the value.else if
clause that logs the string "buzz" if the value being iterated over is
divisible by 5.else if
clause that logs the string "fizzbuzz" if the value being
iterated over is divisible by both 3 and 5. (Hint: Test your code after adding this; your program may
require additional changes in order to work correctly.)starter-code
> Homework-1
> random-address-generator
starter-code
> Homework-2
> functions-practice
starter-code
> Homework-2
> transmogrifier
starter-code
> Homework-2
> z_BONUS-madlibs
We haven't covered all of the concepts necessary to complete this project, but we will pick them up over the next few weeks. Identify syntax in the code that you recognize, and research any code you encounter that you don't understand. This project will be due in a few weeks, so if you're looking for a preview of upcoming content, this will give you a head start.
Using Simple CSS Selectors quiz (Khan Academy) -- use hint/explanation links if you're not sure
(only works in DMs with these bots.)
@slackbot
giphy
/giphy
and a space, followed by a word.giphy
responds with an animated GIF related to that word.(We will configure our computers and start building bots in class next week, so no need to start coding yet.)
Note: You will not push your Slack bot code to the Homework repo
starter-code
> Homework-3
> object-homework
starter-code
> Homework-3
> json-homework
folder
Visual Studio Code settings
You can change custom settings in the Visual Studio Code editor by editing a JSON file. Open and view
this file by pressing command
+shift
+P
(Mac) or
Ctrl
+Shift
+P
(Windows/Linux) to open the Command Bar, type
settings
, and then in the list displayed, click Preferences: Open Settings
(JSON).
The document that opens allows you to add custom settings to override the VS Code defaults. Read through the Visual Studio Code default settings documentation, and then customize at least two settings with your own values. Save your changes, restart the editor, and verify that the changes you made are reflected in the editor.
If you're having trouble choosing a rule to explore, check out the following:
editor.rulers
editor.tabSize
editor.wordWrap
Homework-4
> daft-punk
Homework-4
> jquery-create-append-homework
Homework-4
> survey-form
Homework-5
> ajax-lab
Be sure to store your API keys and app key in js/keys.js
, NOT injs/main.js
.
Dice (30-60 min)
Homework-5
>dice-lab
js
> app.js
folder(Final project due Monday 29/06/20)
Working code for an API call that returns data from one of your news sources, and draft code to extract data and add it to the DOM
NOTE: This is a milestone to help you ensure that you don't fall behind on this project, but you don't need to submit anything for Project 2 until the final deadline of Monday 29/06/20.
NOTE: The Project 2 tasks are milestones that are meant to help you make incremental progress on a larger project, but do not include work that you must submit as weekly homework. I strongly encourage you to complete these tasks by the deadline to avoid getting overwhelmed during the lab. I am also happy to review and discuss your work on your projects at any point.
Completed project due
starter-code
> HOMEWORK-6
>
person-module
Build a module that creates people objects by following the steps in the
app.js
file.
starter-code
> HOMEWORK-6
>
iife-exercise
Build a function that logs the value of a counter variable, using both the
let
and var
keywords. A classic JavaScript brain teaser.
Pseudocode of basic features & draft of HTML/CSS code
NOTE: This is a milestone to help you ensure that you don't fall behind on this project, but you don't need to submit anything for your final project until you present it during the last class on Wednesday 20/07/20.
This tutorial guides you through building a web application with Firebase. This is a preview of what we'll be doing in class next week.