String Methods Flashcards
“Hello World”.upcase
“HELLO WORLD”
“Hello World”.reverse
“dlroW olleH”
“Hello World”.downcase
“hello world”
“Hello World”.capitalize
“Hello world”
“Hello World”.swapcase
“hELLO wORLD”
“Hello World” += “s”
“Hello Worlds”
“Hello World”.split(“ “)
[“Hello”, “World”]
How would you make “Hello World” look like the following?
“HELLO WORLD”
“Hello World”.upcase
How would you make “Hello World” look like the following?
“dlroW olleH”
“Hello World”.reverse
How would you make “Hello World” look like the following?
“hello world”
“Hello World”.downcase
How would you make “Hello World” look like the following?
“Hello world”
“Hello World”.capitalize
How would you make “Hello World” look like the following?
“hELLO wORLD”
“Hello World”.swapcase
How would you make “Hello World” look like the following?
“Hello Worlds”
“Hello World” += “s”
How would you make “Hello World” look like the following?
[“Hello”, “World”]
“Hello World”.split(“ “)