Data Types
IT Notes → Javascript @ December 22, 2020
- For encoding and decoding we use decodeURI and ecodeURI.
- NaN is return when we multiply say two strings.
- When Object converted to Boolean, we get True.
- When we say alert(num) when num is not defined or initiated we get error but after we write var num; alert(num), we get undefined as a result.
- parseInt(num, base);
- const constant = value;
- newValue = oldValue >>> 3 Move bits of operand by 3 spaces right.
- & | ^ ~
- JavaScript 1.3 has strict equality and inequality operator === and !==.
- Short-circuit evaluation by placing the key expression or the less resource-intensive expression first when using logical AND/OR operators.
-
for (variable in object) { ... }
- The use of in also works with conditional tests.
Subscribe
Login
0 Comments