in this exercice i try to write my code like this :
// Do not write or modify code below this line.
// Do not write or modify code below this line.
const _ = {
console.log(_.pad('bodreza', 12))
module.exports = _;
console.log(_.pad('bodreza', 12))
module.exports = _;
but when i try to execute my code i had this message in the console :
$ node test/pad.js
/home/ccuser/workspace/underscore-javascript-capstone/_.js:35
str = str.padStart(-length / 2, ’ ') + str.padEnd(length / 2, ’ ')
^
TypeError: str.padStart is not a function
at Object.pad (/home/ccuser/workspace/underscore-javascript-capstone/.js:35:15)
at Object. (/home/ccuser/workspace/underscore-javascript-capstone/.js:46:15)
at Module._compile (module.js:571:32)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)