Add solution to match whitespace problem (#27470)
* Add solution to match whitespace problem * fix: corrected case of countWhiteSpace on line 61
This commit is contained in:
		
				
					committed by
					
						
						Paul Gamble
					
				
			
			
				
	
			
			
			
						parent
						
							37642f8bcb
						
					
				
				
					commit
					13b3e3fa9b
				
			@@ -57,6 +57,8 @@ let result = sample.match(countWhiteSpace);
 | 
				
			|||||||
<section id='solution'>
 | 
					<section id='solution'>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
// solution required
 | 
					let sample = "Whitespace is important in separating words";
 | 
				
			||||||
 | 
					let countWhiteSpace = /\s/g;
 | 
				
			||||||
 | 
					let result = sample.match(countWhiteSpace);
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
</section>
 | 
					</section>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user