Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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'



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: