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: Initiate Tests on Certain Ports

This appears to be a duplicate of another post. function initTestPort($portNumber=5985,$maxTests=3){ function getIndexDifference { param(…

Linux: Bash Shell Script To Move/Archive Old Files

# create a script to move files (notice the regex escape for special chars) sudo…

PowerShell: Obtain Domain Admin Credential

function obtainDomainAdminCredentials{ # Legacy domain binding function function isValidCred($u,$p){ # Get current domain using logged-on…