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

Windows: Create a Quick Hot Spot From A Wired Computer with Spare Wireless Adapter

# Start the Hot Spot netsh wlan set hostednetwork mode=allow ssid="$env:username hotspot" key=whatpassword netsh wlan…

Upgrade Virtual Hardware Version in VMM

The following script will upgrade all guest virtual machines from a lower version to the…

Python Language Condensed

Strings # declare variable stringsomeString = "Hoy Matey"# Yank positional 1 to 3 within stringyank…