Back to lesson
1. What happens when you try to add a number (41) and a string (John Elder)?
Nothing. You can't add a number to a string
It converts the string to a number and then adds them
It puts them together as a string (41John Elder)
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?
Correct or not
True or False
It tests to determine the type of data
Back to the top
© 2017 GoSkills Ltd.
Skills for career advancement