adplus-dvertising
frame-decoration

Question

Which of the following function of Array object removes the first element from an array and returns that element?

a.

reverse()

b.

shift()

c.

slice()

d.

some()

Answer: (b).shift()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following function of Array object removes the first element from an array and returns that element?

Similar Questions

Discover Related MCQs

Q. ....................... is a built - in JavaScript function which can be used to execute another function after a given time interval.

Q. Java Script entities start with ___________and end with _____________.

Q. Which of the following is a server-side Java Script object?

Q. Javascript is _________ language.

Q. JavaScript is ______ Side Scripting Language.

Q. JavaScript is designed for following purpose -

Q. Cost for Using JavaScript in your HTML is _________ .

Q. JavaScript Code is written inside file having extension __________.

Q. Why JavaScript is called as Lightweight Programming Language ?

Q. Local Browser used for validations on the Web Pages uses __________.

Q. State the correct place of JS Code inside HTML -

Q. Which of the following Attribute is used to include External JS code inside your HTML Document ?

Q. Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts) ?

Q. ______ attribute is used to specify the character encoding used in an external script file.

Q. The async attribute can be set in the following ways -

Q. We use _______ style comment to prevent showing Java Script as Content in the old browsers.

Q. Which was the first browser to support JavaScript ?

Q. JavaScript is invented by ________.

Q. JavaScript was invented at _______ Lab .

Q. JavaScript was originally developed under the name _______.