Array methods

Qus. 1 : Which method is used to remove the last element from an array in JavaScript?

  1. shift()
  2. pop()
  3. remove()
  4. delete()
Qus. 2 : How can you add a new element to the end of an array?

  1. push()
  2. pop()
  3. shift()
  4. unshift()

Programs

JavaScript program to change the image on button click

View Solution


Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad