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

PowerShell: Get NIC MTU’s of All Hyper-V Hosts in Domain/Forest

# listHyperVHostsInForests.ps1 # Version: 0.02 function listHyperVHostsInForests{ # Ensure that AD management module is available…

Convert LastLogon Date From Number to Date Time

We have a case where our Admins have generated a CSV file with information about…

How To Create a Windows Scheduled Task to Call a Program or Script

Example on How To Call a Program: Set Action = Start a Program Set Program/Script…