Back to lesson
1. What happens when you try to add a number (41) and a string (John Elder)?
It puts them together as a string (41John Elder)
Nothing. You can't add a number to a string
It converts the string to a number and then adds them
2. What happens when you try to add two strings (apples + oranges)?
It puts them together into a string (applesoranges)
It makes a string
3. What does a boolean test for?
It tests to determine the type of data
Correct or not
True or False
Back to the top
© 2017 GoSkills Ltd.
Skills for career advancement