From 16cf10e4890e28d3e112ef336f9a4ad87a14054a Mon Sep 17 00:00:00 2001 From: Lisa Huang Date: Wed, 9 May 2018 20:58:47 +0200 Subject: [PATCH] Added notes and solution for Project 17 - Sorting Band Names --- 17 - Sort Without Articles/index-START.html | 24 ++++++++++++++++----- readme.md | 8 +++++++ 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/17 - Sort Without Articles/index-START.html b/17 - Sort Without Articles/index-START.html index 9bbd250a9b..1de1a29fae 100644 --- a/17 - Sort Without Articles/index-START.html +++ b/17 - Sort Without Articles/index-START.html @@ -1,9 +1,11 @@ + Sort Without Articles + - + document.querySelector('#bands').innerHTML = + sortedBands + .map(band => `
  • ${band}
  • `) + .join(''); + + - + + \ No newline at end of file diff --git a/readme.md b/readme.md index c2cae242a8..115e734064 100644 --- a/readme.md +++ b/readme.md @@ -853,3 +853,11 @@ JS Syntax: `object.style.textShadow="2px 5px 5px red"` The text-shadow property adds shadow to text, default value is none. +## Project 17: Sorting Band Names without articles + +### [Regular Expressions (Regex)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) + +Regular expressions are patterns used to match character combinations in strings. + +- [Handy JS Regex cheatsheet](https://www.debuggex.com/cheatsheet/regex/javascript) +- [RegExr sandbox](https://regexr.com/)