793 B
793 B
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
587d7b8d367417b2b2512b59 | Import a Default Export | 1 |
Description
undefined
Instructions
undefined
Tests
tests:
- text: ''
testString: 'getUserInput => assert(getUserInput("index").match(/import\s+subtract\s+from\s+"math_functions"/g), "Properly imports <code>export default</code> method.");'
Challenge Seed
"use strict";
subtract(7,4);
Before Test
window.require = function(str) {
if (str === 'math_functions') {
return function(a, b) {
return a - b;
}}};
Solution
// solution required