const inputStyle = {
width: 235,
margin: 5
};
class MagicEightBall extends React.Component {
constructor(props) {
super(props);
this.state = {
library.js
const inventory = {
sunglasses: 1900,
pants: 1088,
bags: 1344
};
const checkInventory = (order) => {
return new Promise((resolve, reject) => {
- You know that you're in the right database when you see the name of the database at the beginning of the terminal line.
- If you already know the name of the database you want to connect to, you can write psql name_of_database and that would be equivalent to psql postgres \c name_of_database
- Remember to steer clear of double quotes around strings in your queries!
\l
List databases\c
Connect to a database\dt
Display Tables in a database
Just migrated it from Codepen.io to markdown. Credit goes to David Conner.
Working with DOM | Working with JS | Working With Functions |
---|---|---|
Accessing Dom Elements | Add/Remove Array Item | Add Default Arguments to Function |
Grab Children/Parent Node(s) | Add/Remove Object Properties | Throttle/Debounce Functions |
Create DOM Elements | Conditionals |
These are my notes, solutions, ect from the Building Interactive Websites Exam 2 in Codecademy's Full Stack Course.
const students = [
{ name: "Paisley Parker", gpa: 4.0 },
{ name: "Lake Herr", gpa: 3.2 },
{ name: "Promise Lansing", gpa: 3.9 },
{ name: "Friar Park", gpa: 2.8 },
{ name: "Mason Amitie", gpa: 3.49 }
- Does the code work?
- Description of the project status is included.
- Code is easily understand.
- Code is written following the coding standarts/guidelines (React in our case).
- Code is in sync with existing code patterns/technologies.
- DRY. Is the same code duplicated more than twice?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class School { | |
constructor(name, level, numberOfStudents) { | |
this._name = name; | |
this._level = ['primary', 'middle', 'high']; | |
this._numberOfStudents = numberOfStudents; | |
} | |
get name() { | |
return this._name; | |
} |