1020 B
1020 B
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
56533eb9ac21ba0edf2244b4 | Quoting Strings with Single Quotes | 1 |
Description
undefined
Instructions
undefined
Tests
tests:
- text: ''
testString: 'assert(!/\\/g.test(code) && myStr.match("\\s*<a href\\s*=\\s*"http://www.example.com"\\s*target\\s*=\\s*"_blank">\\s*Link\\s*</a>\\s*"), "Remove all the <code>backslashes</code> (<code>\</code>)");'
- text: ''
testString: 'assert(code.match(/"/g).length === 4 && code.match(/"/g).length === 2, "You should have two single quotes <code>'</code> and four double quotes <code>"</code>");'
Challenge Seed
var myStr = "<a href=\"http://www.example.com\" target=\"_blank\">Link</a>";
After Test
console.info('after the test');
Solution
// solution required