Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx35
var assert = require('assert');function powN(x, n) { return;}try { assert.equal(powN(2, 10), 1024); console.log('PASSED: ' + "`powN(2, 10)` should return `1024`");} catch (err) { console.log(err);}try { assert.equal(powN(2.1, 3), 9.261000000000001); console.log('PASSED: ' + "`powN(2.1, 3)` should return `9.261000000000001`");} catch (err) { console.log(err);}try { assert.equal(powN(2, -2), 0.25); console.log('PASSED: ' + "`powN(2, -2)` should return `0.25`");} catch (err) { console.log(err);}OUTPUT
Results will appear here.