Posted On April 4, 2019

Basic JavaScript: Comparison with the Strict Inequality Operator

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Basic JavaScript: Comparison with the Strict Inequality Operator
function testStrictNotEqual(val) {
// Only Change Code Below this Line
// Add the strict inequality operator to the if statement so the function will return "Not Equal" when val is not strictly equal to 17
if (val!==17) {
return "Not Equal";
}
return "Equal";
}

// Change this value to test
testStrictNotEqual(10);

Leave a Reply

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

Related Post

PowerShell: Elevating Credential

$jumpbox="127.0.0.1" <# # Static Credentials (unsecured) $username = (Get-ADDomain).name+"\ADMINISTRATOR" $password = "PASSWORD" #> # Dynamic…

Script to Rename Computers in Active Directory

1. Run this PowerShell Script to rename 1 computer: $admin = "KIMCONNECT\"+ Read-Host "Enter the…

PowerShell: Remediate Microsoft Windows Unquoted Service Path Enumeration

Description The remote Windows host has at least one service installed that uses an unquoted…