Remove reference to "backspace" regex in example #35176
This commit is contained in:
		
				
					committed by
					
						 Quincy Larson
						Quincy Larson
					
				
			
			
				
	
			
			
			
						parent
						
							9389c7342c
						
					
				
				
					commit
					4a7571492d
				
			| @@ -7,8 +7,8 @@ videoUrl: 'https://scrimba.com/c/cvmqRh6' | |||||||
|  |  | ||||||
| ## Description | ## Description | ||||||
| <section id='description'> | <section id='description'> | ||||||
| Quotes are not the only characters that can be <dfn>escaped</dfn> inside a string. There are two reasons to use escaping characters: First is to allow you to use characters you might not otherwise be able to type out, such as a backspace. Second is to allow you to represent multiple quotes in a string without JavaScript misinterpreting what you mean. We learned this in the previous challenge. | Quotes are not the only characters that can be <dfn>escaped</dfn> inside a string. There are two reasons to use escaping characters:<ol><li>To allow you to use characters you may not otherwise be able to type out, such as a carriage returns.</li><li>To allow you to represent multiple quotes in a string without JavaScript misinterpreting what you mean.</li></ol>We learned this in the previous challenge. | ||||||
| <table class="table table-striped"><thead><tr><th>Code</th><th>Output</th></tr></thead><tbody><tr><td><code>\'</code></td><td>single quote</td></tr><tr><td><code>\"</code></td><td>double quote</td></tr><tr><td><code>\\</code></td><td>backslash</td></tr><tr><td><code>\n</code></td><td>newline</td></tr><tr><td><code>\r</code></td><td>carriage return</td></tr><tr><td><code>\t</code></td><td>tab</td></tr><tr><td><code>\b</code></td><td>backspace</td></tr><tr><td><code>\f</code></td><td>form feed</td></tr></tbody></table> | <table class="table table-striped"><thead><tr><th>Code</th><th>Output</th></tr></thead><tbody><tr><td><code>\'</code></td><td>single quote</td></tr><tr><td><code>\"</code></td><td>double quote</td></tr><tr><td><code>\\</code></td><td>backslash</td></tr><tr><td><code>\n</code></td><td>newline</td></tr><tr><td><code>\r</code></td><td>carriage return</td></tr><tr><td><code>\t</code></td><td>tab</td></tr><tr><td><code>\b</code></td><td>word boundary</td></tr><tr><td><code>\f</code></td><td>form feed</td></tr></tbody></table> | ||||||
| <em>Note that the backslash itself must be escaped in order to display as a backslash.</em> | <em>Note that the backslash itself must be escaped in order to display as a backslash.</em> | ||||||
| </section> | </section> | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user