easy5 pts · first answer countsjavascripttype-coercion
Plus and minus with a string
What do these two lines print?
console.log("5" + 3)
console.log("5" - 3)Discussion 0
Join free to post in the discussion.
Related questions
- Block scope of letFrontend Developer
- Loose vs strict equalityFrontend Developer
- Sync code runs before promise callbacksFrontend Developer
- typeof null and arraysFrontend Developer
- Changing a property of a const objectFrontend Developer
- Numbers saved in localStorageFrontend Developer
- What fetch does on a 404Frontend Developer
- Optional chaining on missing dataFrontend Developer