-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
/** | ||
* Practice: Building functions | ||
* Practice: Building objects | ||
* | ||
* - Create a basic function declaration - you’ll remember that’s where we say “function” followed by the name of the function. | ||
* - In the body of the function declaration, do something to an element in the DOM. For this you can use any of the techniques we’ve covered earlier - finding an element using querySelector, adding a class, whatever you like. | ||
* - Call the function declaration so the action takes place. | ||
* - Create a basic function expression - that’s when you define a variable and place an anonymous function inside | ||
* - Do the same as above - find an element, make a change to it, call the function, make sure it works. | ||
* - Finally, create an arrow function, make it do something, and call it. | ||
* - Create JavaScript objects based on objects in your current environment. | ||
* - Give each object an identifiable name. | ||
* - Create properties to describe the objects and set their values. | ||
* - Find an object that has another object inside of it to create a nested object. | ||
* - Test your objects in the browser console by accessing the entire object and its specific properties. | ||
*/ |