/JS101

Primary LanguageJavaScript

JS101

// sonnet.js instructions

*Paste the code below into your HTML file.

Take the contents of the sonnet div and place it in a variable. Find and output the starting position of the word "orphans". Output the number of characters in the sonnet. Replace the first occurance of the string "winter" with "yuletide". Replace all occurances of the string "the" with "a large". Set the content of the sonnet div with the new string.

// colors.js instructions create a variable with the string list of colors make the list into an array sort that array alphabetically loop through the array and log to the console the statements: The color at index number is color name