The legend of JavaScript equality operator

JavaScript the Barbarian Sometimes when I'm writing Javascript I want to throw up my hands and say "this is bullshit!" John, JavaScript developer During everyday JavaScript coding, it may be hard to see how the equality operator works. Especially when the operands have different types. Time to time this creates bugs in conditionals, which are difficult to identify. It is easy to understand why 0… Continue reading

JavaScript addition operator in details

Introduction JavaScript is an awesome language. I like it because of the flexibility: just do the things in a way you like: change the variable type, add methods or properties to object on the fly, use operators on different variable types and much more. However the dynamism comes with a price. Developer needs to understand how to handle types conversion for different operators: addition (+), equality… Continue reading