1.7 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.7 KiB
		
	
	
	
	
	
	
	
id, title, challengeType, videoUrl, localeTitle
| id | title | challengeType | videoUrl | localeTitle | 
|---|---|---|---|---|
| 587d7dbb367417b2b2512bac | Remove Whitespace from Start and End | 1 | Eliminar espacios en blanco de inicio y fin | 
Description
Instructions
El método
.trim() funcionaría aquí, pero necesitarás completar este desafío usando expresiones regulares. Tests
tests:
  - text: '<code>result</code> debe ser igual a <code>"Hello, World!"</code>'
    testString: 'assert(result == "Hello, World!", "<code>result</code> should equal to <code>"Hello, World!"</code>");'
  - text: No debes usar el método <code>.trim()</code> .
    testString: 'assert(!code.match(/\.trim\(.*?\)/), "You should not use the <code>.trim()</code> method.");'
  - text: La variable de <code>result</code> no debe ser igual a una cadena.
    testString: 'assert(!code.match(/result\s*=\s*".*?"/), "The <code>result</code> variable should not be set equal to a string.");'
Challenge Seed
let hello = "   Hello, World!  ";
let wsRegex = /change/; // Change this line
let result = hello; // Change this line
Solution
// solution required