3 ms·
JS is strongly typed, not sure about PHP but I don't think so. lisp is not a language, it's a family of languages
by serve_yay 12y ago
JS is strongly typed, not sure about PHP but I don't think so. lisp is not a language, it's a family of languages
- pythonautical 12y ago> [] + {} "[object Object]" > {} + [] 0 JS and PHP are the prototypical examples of weak typing.
- serve_yay 12y agoAgain, not sure about PHP. But no, JS is strongly typed. What you've shown there is coercion, not type-punning or anything of the sort.