Methods are the actions that can be performed on objects.You can call a method with the following syntax:objectName.methodName()This example uses the toUpperCase() method of the String object, to convert a text to uppercase:var message="Hello world!";var x=message.toUpperCase();The value of x, after execution of the code above will be:HELLO WORLD!
Javascript
Topic: JS Objects
How to Accessing Objects Methods?
Browse random answers:
What is a javascript object ?
How to create an Object in JavaScript ?
What are windows object and navigator object in JavaScript?
How do you assign object properties in JavaScript?
How can JavaScript language be separated from objects?
What are the different objects used in JavaScripts?
Why is object naming important to use in JavaScript?
How do you assign object properties?
What is this keyword?
How to Accessing Object Properties?
How to Accessing Objects Methods?
What's the Date object using JavaScript?