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 CSS: Prioritize One Style Over Another

<style>body {background-color: black;font-family: monospace;color: green;}</style><h1>Hello World!</h1>

SQL: Use PowerShell to Generate a Database Object From Another Object

Have you ever wondered about the prospect of automating T-SQL executions on Windows? As your…

Random Notes about WSUS

#Install the PowerShell Windows Update module $checkModule=Get-Module -ListAvailable -Name PSWindowsUpdate if(!($checkModule)){ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 #…