Basics-02
Get to your submission folder under exercises/javascript-basics-02
Each step has a prepared html file to work with, use it
You should create a javascript file for each step whitin the step folder.
e.g : step_1 => index.html + Step_1.js
COMMIT AFTER EACH STEP, call each commit by the name of the step
References
Goals:
Learn basic DOM operations
Competencies:
mouseover
form events
functions
Step 1
Target the image (use
querySelector
)Add an event listener to it (use
onMouseOver
oraddEventListener
)Change the image when the mouse is over it
Commit
Step 2
Target the input (use
querySelector
)When the input loses focus, show a dialog saying "thank you for participating!" (user
onblur
oraddEventListener
)Commit
Step 3
Create a div
target the div
target the input
When the input changes, display the new text in the div
Commit
Step 4
When "Reset" is pressed, clear all fields in the form
When "Reset" is pressed, show a "yes/no" dialog, and clear all fields IF the user presses "yes"
Commit
Step 5
Same as Step 1, but with 5 images.
Do it with one function!
Commit
Step 6
Same as Step 5, but restore the original image when mouse is out of the image.
Do it with only two functions!
Commit
Congrats!
You finished Javascript Basics 1! Send a pull request
Last updated
Was this helpful?