JAVASCRIPT
Ques1. Strict and type converting
Ans.
- const a = "42";
- const b = 42;
- console.log(a==b); //true
- onsole.log(a===b); //false
- Strict comparison (===) checks for value equality without allowing coersion i.e strings=/= number
- Abstract comparision (==) checks for value equality with coersion allowed i.e. strings=number