You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I must have missed the lesson on module.exports somewhere because I don't understand it. I took the Javascripting workshop and then it recommended this functional-javascript workshop. I didn't get exposed to this previously
This is the output:
(base) Neils-MacBook-Pro-2:javascripting neilg$ functional-javascript verify uppercase.js
NEIL GEHANI // this is the right output though
✗ You should always return a function using the module.exports object.
Could not verify: You should always return a function using the module.exports object.
(base) Neils-MacBook-Pro-2:javascripting neilg$
This is the function:
let input = 'neil gehani'
function upperCaser(input) {
// SOLUTION GOES HERE
console.log(input.toUpperCase())
}
module.exports = upperCaser(input)
I also tried it with the following:
function upperCaser(input) {
// SOLUTION GOES HERE
console.log(input.toUpperCase())
}
module.exports = upperCaser('neil gehani')
//this shows the same result as above
The text was updated successfully, but these errors were encountered:
Hello, I had the same problem and I hope they will add the documentation before the exercise like javascripting. Anyway, I don't know if you're looking for the complete solution but for the moment try to use return instead of console.log() :)
3 years later and I have the same problem, and they haven't addressed it. I also just finished the javascripting beginner course so I don't know how to deal with this.
I must have missed the lesson on module.exports somewhere because I don't understand it. I took the Javascripting workshop and then it recommended this functional-javascript workshop. I didn't get exposed to this previously
This is the output:
This is the function:
I also tried it with the following:
The text was updated successfully, but these errors were encountered: