861 B
861 B
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
587d7b8c367417b2b2512b55 | Understand the Differences Between import and require | 1 |
Description
undefined
Instructions
undefined
Tests
tests:
- text: ''
testString: 'getUserInput => assert(getUserInput("index").match(/import\s+\{\s*capitalizeString\s*\}\s+from\s+("|")string_functions\1/g), "valid <code>import</code> statement");'
Challenge Seed
"use strict";
capitalizeString("hello!");
Before Test
window.require = function (str) {
if (str === 'string_functions') {
return {
capitalizeString: str => str.toUpperCase()
}}};
Solution
// solution required