Posted On April 4, 2019

Basic JavaScript: Manipulate Arrays With unshift()

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Basic JavaScript: Manipulate Arrays With unshift()
// Setup
var myArray = [["John", 23], ["dog", 3]];
myArray.shift();

// Only change code below this line.
myArray.unshift( ["Paul",35]);

Leave a Reply

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

Related Post

IIS Server Troubleshooting

Issue: There has been a time when a production IIS server becomes unreachable via RDP,…

Basic JavaScript: Understand String Immutability

// Setupvar myStr = "Jello World";// Only change code below this linemyStr[0] = "H"; //…

Python Module: Datetime

Datetime Programs often include dates and time to perform interactive greetings, calculate age, stamping backups,…