To Do This Week:
CodeAcademy – just the lessons, not the projects
Steps to make a Hangman game…?
Change Circles Script
Remember, if your script stops working. Command + Option + J opens the console with the line of the error. Or “inspect element” and look for the Console in the panel.
Traversing the DOM (getting and manipulating elements on the page):
Working with strings (manipulating text):
Regex (regular expressions) Basics:
// TO BREAK A LINE AFTER A PERIOD
// find all periods: \.
// replace with: \.\n
// TO ADD QUOTE AT START OF LINES
// find beginning of line: ^
// replace with: ”
// TO ADD QUOTE AND COMMA AT END OF LINES
// find end of line: $
// replace with: “,
// TO REMOVE ALL LINE BREAKS
// find: \n\s+
// replace with nothing