Interactive Web Design Labs 7.1 & 7.2: Coding with JavaScript
JavaScript Coding
Understanding the fundamental concepts and skills of JavaScript will help us to use JavaScript functionality in our projects.
Steps
- Go to https://www.w3schools.com/js/exercise_js.asp
- Please complete the below 3 parts.
Lab 7.1
Complete each set of exercises from Introduction to Display Objects.Notice that each set of exercises has explanatory links at the bottom. Use these to help you complete the exercises.
When you have ticks beside all exercise sets, please show your lab tutor this screen:
Alternatively, you can upload a screenshot of these completed exercises to Brightspace.
Lab 7.2
Complete each set of below exercises found on the same webpage as described above.- Object Constructors
- Events
- Strings
- Numbers
These links may help understanding when it comes to number functions in JavaScript:
- Boolean Operators
- Equality Operators
- Logical Operators Additional Resources:
- MDN Web Docs - Number
- W3Schools - JavaScript Numbers
- Number Methods
- Arrays
- Array Methods
- Booleans
- Comparisons
- If Else
- TypeOf
- Operator Precedence