- Download or clone this Gist to your workspace.
- Rename the project folder to something not
cb96cdb...
. - Open the project folder in VS Code.
- Pick a Codepen of your choice that uses vanilla HTML, CSS (not SCSS) and JS.
A proof of concept implementation of D3 using GitHub API data.
- Create a
json
file containing the data you'd like to import (like the local module you're creating for Assignment 5).- Warning: MongoDB (and
mongoose
) assume you'll be importing an array of objects. Any other data types will lead to unexpected results. - A sample
definitions.json
file has been provided with this Gist.
- Warning: MongoDB (and
- Add your connection string in Compass.
This is a command line exercise for practicing basic file system navigation commands:
pwd
: Display your present (working) directoryls
: List directory contentscd
: Change directory
- Download this Gist to your workspace and expand/extract
animal-world.zip
. - Navigate to this directory using your terminal.
- Note: when you open a new terminal window (i.e. using Git Bash on Windows or Terminal on Mac OS) the default location will normally be your home folder (
/Users/jane
).
When calling for data over the network in Javascript, the calling script won't wait for the data to come back. Instead, it continues to execute and any code that depends on the fetched data will return with an error.
ES6 added Promises which allows us to set "reminders" in our code that data is on its way.
ES7 added the async
/await
syntax that let's us use promises to "pause" our code for functions that are asynchronous.
In this activity, you will take a list of image IDs listed in picsum-list.js
and create a gallery of images using the Lorem Picsum service.
Lorem Picsum is an image service that allows you to embed placeholder photos into your web pages. The images are pulled from open-source Unsplash images.
For example, the following HTML displays this puppy image
<img src="https://picsum.photos/id/237/300/300" alt="Lorem Picsum Image">
A collection of sample arrays to play with.
The following files contain code that runs when a function is invoked. Refactor each of these files so that:
- the initial argument values are submitted by the user using form fields;
- the response is printed to
index.html
.
For each of the .js
files in this Gist:
- Create a new HTML file named after the respective
.js
file. For example,captialize.html
should link tocapitalize.js
in a<script>
element in the<head>
; - In this HTML file,
- add an appropriate form field and `` for each of the values the user will be submitting. Examples: