Course Content
Javascript Full Course
0/87
JavaScript Course
About Lesson
Modify Array:

JavaScript gives you several ways to modify arrays. The first way is to give an existing array element a new value. This is as easy as assigning the value.

Example: 

  var x = [“Ram”, 17, “Male”, 12];

  var a[1] = 19;

Delete Array:

This method deletes the element at the index specified, This means that at the place of the deleted index, the element is left undefined or null.

Example: 

  var x = [“Ram”, 17, “Male”, 12];

  delete a[1];

Exercise Files
No Attachment Found
No Attachment Found
Join the conversation

Introducing Official ApeStaking Protocol for ApeCoin.

New Blur NFT Marketplace Courting Professional.