You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-1/4-stretch-explore/objects.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,4 +23,13 @@ console.log prints the value of whatever you ask it to print ie console.log(port
23
23
24
24
console.assert tests for a condition but only returns a message if the condition is false. For instance it may be used to check the age of a person to restrict access to a site for adults only.
25
25
26
-
the full stop is used to separate the object from the method. Console is the object and log and assert are methods
26
+
the full stop is used to separate an object from its method.
27
+
In console.log and console.assert console is the object and log and assert are methods.
28
+
The full stop is called the 'dot operator' or 'member access operator'
29
+
The dot operator accesses a property or method of an object
30
+
For example console.log means access the log method from the console object
31
+
and console.assert means access the assert method from the console object
0 commit comments