Arrays
- MDN Readings
- Videos:
Strings
- MDN Readings
In groups of 3-4, create some more sample arrays for this Gist.
nouns.js list as an example, brainstorm items for your array and save them to your Gist/repo.You will be asked to submit your share link in the main room so your Instructor can add it to the above Gist.
<textarea> Character CounterUsing this starter code try the following to practice your arrays and strings:
String.startsWith(), print a "yes" or "no" response stating whether or not the string is matches the start of the phrase. See spoilers.String.endsWith(), state whether or not the phrase is a question.String.includes(), print a "yes" or "no" response stating whether or not the string matches any section of the phrase.String.indexOf(), print the index of the first matching string found in the phrase.<textarea> counter back into the starter form.String.split(), refactor the <textarea> counter to be a word counter.string field to the form and use String.replaceAll() to print a new phrase where the first string has been replaced with the second string.