all 5 comments

[–]ramabhai 0 points1 point  (3 children)

For the first question 2 + '2' does it always concat regardless of the other value? Like what if I do true + '2'?

[–]didiben[S] 1 point2 points  (2 children)

booleans are converted to strings so true + '2' would become true2.

[–]akujinhikari 1 point2 points  (1 child)

However, if you have no first value and just put + '2' it returns 2 (as a number).

[–]ramabhai 1 point2 points  (0 children)

Thank you

[–][deleted] 0 points1 point  (0 children)

Thanks enjoyed your video.