JavaScript
-
JavaScript Best Practices(Part-2)
Use call to Call Methods with a Custom Receiver Ordinarily, the receiver of a function or method (i.e., the value bound to the special keyword this) is determined by the syntax of its caller. In particular,…
-
JavaScript Best Practices(Part -1)
Beware of Implicit Coercions JavaScript allows for some surprising type coercions. The below expression throws an error in most languages. In the above expression JavaScript coerces true as the number 1 and adds…