Object Methods An object method is a property that contains a function definition . Use the following syntax to access an object method . objectName.methodName() As you already know, document.write() outputs data. The write() function is actually a method of the document object . document.write("This is some text"); Try It Yourself Methods are functions that are stored as object properties.
Comparison Operators The table below explains the comparison operators. When using operators, be sure that the arguments are of the same data type; numbers should be compared with numbers, strings with strings, and so on. Please enter the corresponding operators according to the comments at right. val1 == val2 // are equal val1 ! val2 // not equal val1 <val2 // less than val1 === val2 // are strict equal (identical)
Comments
Post a Comment