Chapter 3: Control Statements

used to extract a piece of a string for further use var greeting = “Hello There”; H e l l o T h e r e var new_String = greeting.substring(0, 4); // will get “Hell” var new_String = greeting.substring(6, greeting.length); // will get “There” Converting a number to a String. may need to convert a number to display it. int value = 27; ................
................