What you need to know for Monday’s assessment.
'foobar'
'this is a string with spaces'
+
and []
What they do and how to use them in expressions.
substring
toUpperCase
toLowerCase
Given a string s
:
s.substring(1)
s.substring(0, s.length - 3)
s.toUpperCase()
s.toLowerCase()
Even if you get stuck on the function syntax, try to write something that looks like a correct expression using meaningful names.
You’ll at least get credit for your understanding of string expressions.