Hacker News new | ask | show | jobs
by L0stLink 1661 days ago
JavaScript will dynamically change the effective type of a value like sting or number into another depending on the operation being performed on it:

'2' * 3 => 6

'2' + 3 => '23'