-——Code Begins Here——-
-——Code Ends Here——-
In my first document.write statement all I’m doing is concatenating strings, in other words, I’m “stringing” them together without spaces in this example. I didn’t have to declare variables; but, that’s how I prefer to work. The second line to print involves taking the string stored in the word1 variable to upper case letters using the toUpperCase() method. I could just have easily used this method directly on a string “caught up” within the document.write statement by writing: document.write(“apples”.toUpperCase().