compare two values in javascript code example Example: != javascript // " != " in Javasacript means : not equal.