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: Kill Processes Remotely

# This function requires 2 parameters: -computerName and -processName function killRemoteProcess{ [cmdletbinding()] param( [string]$computerName=$env:COMPUTERNAME, [parameter(Mandatory=$true)]…

PowerShell: Taking a Snapshot of a Windows Volume

I have this snippet embedded in various programs. Perhaps, it's useful to be posted as…

PowerShell: Install DotNet 3.5 – the Easy Way

$package="dotnet3.5"# Install Chocolateyif (!(Get-Command choco.exe -ErrorAction SilentlyContinue)) {Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))}#…