compare non equality function

this will check if two values are not equal

Demo

function is_not_equal(a, b) {
  if (a !== b) {
    return "Not Equal";
  }
  return "Equal";
}
console.log(is_not_equal(1,1));
console.log(is_not_equal(1,'1'));

Other Items in javascript
Page Views

This page has been viewed 55 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹