779 B
779 B
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
587d7b8c367417b2b2512b58 | Create an Export Fallback with export default | 1 |
Description
undefined
Instructions
undefined
Tests
tests:
- text: ''
testString: 'getUserInput => assert(getUserInput("index").match(/export\s+default\s+function\s+subtract\(x,y\)\s+{return\s+x\s-\s+y;}/g), "Proper used of <code>export</code> fallback.");'
Challenge Seed
"use strict";
function subtract(x,y) {return x - y;}
Before Test
window.exports = function(){};
Solution
// solution required