It is import to have a profile on GitHub, this will be where you have your code to show potential employers.
const artist = { | |
"idArtist": "111247", | |
"strArtist": "The Beatles", | |
"strArtistStripped": null, | |
"strArtistAlternate": "Beatles", | |
"strLabel": "EMI", | |
"idLabel": "43827", | |
"intFormedYear": "1957", | |
"intBornYear": null, | |
"intDiedYear": "1970", |
#!/bin/bash | |
# This creates React boilerplate | |
# This script takes two arguments folder & files | |
# It will create .jsx & .scss files in the src inside the given folder | |
# Have the file in the root project directory & run | |
# ./create.sh folderName fileName | |
echo "Create $2 jsx & scss files in the $1 folder? Y/N" | |
read answer | |
lowerAnswer=$(echo "$answer" | tr '[:upper:]' '[:lower:]') |
#!/bin/bash | |
# Enter Github url + Student's name / Name of the folder it is going to create for you. | |
# Clone a students repo, change branch to feedback. | |
# It will create a feedback folder in the project. | |
# If there is a template.md and it will copy and rename it in the feedback folder. | |
# Else it will create a blank notes.md in the feedback folder. | |
# If the project has a package.json it will install any dependencies listed. | |
echo "Enter the GitHub URL " | |
read github_url | |
echo "Enter the Student's name " |
const devicesResponse = [{ | |
"hostName": "iPhone", | |
"subnet": 0, | |
"dhcpLastSeenStatus": "green", | |
"dhcpLastSeen": "Oct 18, 2021 7:15:27 PM", | |
"dnsLastSeen": "Oct 18, 2021 7:29:08 PM", | |
"dnsLastSeenStatus": "green", | |
"dnsChanged": 0, | |
"deviceId": 34840, | |
"network": "Winsford-test", |
This a mini project to get you use to using import and export syntax.
Your brief is to make a basic UI / display for the data given. Focus on functionality first with very basic styles. You need to have the data provided in its own data folder. I want you to then bring it into the main.js as a default import. In the main.js I want you to iterate through and get each of the objects onto the index.html.
Each of the food html items should match the html below with the placeholder's replaced for the values from each of the objects.
Congratulations you have completed the Javascript module 😎.
You have covered some of the core fundamentals of Javascript and also how to start thinking about breaking problems down programmatically.
To give you a head start with this thinking and to get you to practice writing Javascript we have some challenges below we would like you to complete.
- We would like this project to be pushed to GitHub.
You can use destructuring with vanilla javascript.
It is heavily used with React and we will be using it with React so the examples are based on props, components, useState etc..
When destructuring an object you use curly brackets {}
on the lefthand side as it is an object.