Posted On April 4, 2019

Basic JavaScript: Manipulate Arrays With shift()

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Basic JavaScript: Manipulate Arrays With shift()
// Setup

var myArray = [["John", 23], ["dog", 3]];

// Only change code below this line.

var removedFromMyArray=myArray.shift();

Leave a Reply

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

Related Post

PowerShell: Reset Password for All Users inside an OU

$ouName="Funky Dudes" $ouPath = "ou=$ouName,dc=intranet,dc=baam,dc=com" $plaintextPassword='WHATPASSWORD?' $users=Get-ADUser -Filter * -SearchBase $ouPath | Select-object Name,UserPrincipalName,DistinguishedName foreach…

Last Logon Dates of List of AD Accounts

import-module activedirectory$output=""Get-Content C:\Users\kimconnect\Desktop\targetAccounts.txt | Foreach-Object -Process{ #  cast an array object as string before using…

PowerShell: Detect Microsoft SQL Version and Installed Location

function getSqlInfo{ $results=@() $instances=(get-itemproperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server').InstalledInstances foreach ($i in $instances){ $p=(Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\Instance…