Upload
others
View
4
Download
0
Embed Size (px)
Citation preview
R U C H E N W Y N G A A R D
Meet youreducator
Professional Diploma in
Coding and Technology
Lesson 5: JavaScript Objects, Properties and MethodsLesson 5: JavaScript Objects, Properties and Methods
Working with JavaScript functions
Understand JavaScript objects and properties
Practical demonstration
Lesson 5
Objectives
Functions and methods are often used interchangeably.
DID YOU KNOW?
Loading…
JavaScript functionsA JavaScript function is a block of code designed to perform a particular task. A JavaScript function is executed when "something" invokes it (calls it).
Functions
Functions
Global and local
variablesGlobal variables Local variables
Global and local variables
Global and local variables
return statement
return statement
Loading…
JavaScript objects and propertiesAn object is a collection of properties, and a property is an association between a name (or key) and a value.
JavaScript objects and properties
JavaScript objects and properties
Creating objects with functions
Constructors
Creating methods
Loading…
Let’s code!
Completed lessons
1 2 4
5 6 7 8
3 See you soon for
L e s s on 6