What are some of the built-in methods in JavaScript?

Built-in MethodValues
Date()Returns the present date and time
concat()Joins two strings and returns the new string
push()Adds an item to an array
pop()Removes and also returns the last element of an array
round()Rounds of the value to the nearest integer and then returns it
length()Returns the length of a string

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *