javascript test strict equality
// If you try to test if the number 5
//is equal to the string “5” the result is true.
var a = 5;
var b = "5";
if ( a == b) --> true
//That’s because JavaScript figures out the value
//of this string is five, and five is the same as five,
//so therefore a equals b.
//But if you ever need to test to see
//if two things are identical, three symbols is the way to go.
var a = 5;
var b = "5";
if ( a === b) --> false
Also in JavaScript:
- how to use http in development mode for nodejs
- jquery on element change
- how to make a bot react to own message js
- drupal 8 get node from path alias
- 'ts-node' não é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes.
- javascript function with array parameter
- how to add element in json object
- js array get index
- how to show a certain position in javascript
- dart list files in directory
- javascript select option based on text
- disable copy past jquery
- chart.js line chart animation on canvas update react class state
- chrome json viewr
- update url parameters and create history entry
- onload vue
- the path argument must be of type string. received undefined react
- js delete object in dict
- javascript array clear
- javascript split by comma
- react start new app
- bbcode javascript html textarea
- dayjs invalid date
- How do I redirect to another webpage