Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercise 1 - Hello World #202

Open
ngehani opened this issue Dec 8, 2019 · 3 comments
Open

Exercise 1 - Hello World #202

ngehani opened this issue Dec 8, 2019 · 3 comments

Comments

@ngehani
Copy link

ngehani commented Dec 8, 2019

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

@Oajwbfn
Copy link

Oajwbfn commented Jan 12, 2020

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() :)

@apc0der
Copy link

apc0der commented Jun 17, 2023

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.

@anukritidata
Copy link

Same! Same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants