Skip to content

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.
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x