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

Basic JavaScript: Manipulate Arrays With pop()

// Setupvar myArray = [["John", 23], ["cat", 2]];// Only change code below this line.var removedFromMyArray=myArray.pop();

PowerShell: Raise Domain Forest Functional Level

# Raise Forest Functional Level$forest=Get-ADForest# 2012R2 LevelSet-ADForestMode -Identity $forest -Server $forest.SchemaMaster -ForestMode Windows2012R2Forest -Force# 2016…

Kubernetes Container Deployment with NFS Persistent Volumes

Introduction: Update: we have provided a practical application of the knowledge conveyed in this article…