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

Need help getting started. #27

Closed
vijaybritto opened this issue Oct 26, 2013 · 5 comments
Closed

Need help getting started. #27

vijaybritto opened this issue Oct 26, 2013 · 5 comments

Comments

@vijaybritto
Copy link

Hello,
Im completely new to this, just tell how to get going for the first hello world question.
Please post the answer here. I have done the following but I just get only errors.

module.exports= function(input){
var input="Lorem ipsum dolor sit amet";
var out = input.toUpperCase();
console.log(out);

}
I get some "expected ..." errors.
What should I do?

@timoxley
Copy link
Owner

you don't need to supply the input to the exported function, the workshop will pass it in.

Try this to get started:

// input is passed into the exported function
module.exports= function(input) {
  console.log(input) 
}

Then try your solution:

> functional-javascript-workshop run myfile.js

Let me know if this helps

@vijaybritto
Copy link
Author

screenshot from 2013-10-26 15 37 52
I get this now. The lower one is the latest after trying as you said.

@timoxley
Copy link
Owner

you get it, as in your understand?

I just console logged the input. The text in red is what it should look like. The goal of each exercise is to make the green text look like the red text.

@vijaybritto
Copy link
Author

Yes its working. Thank u.

Sent from my Windows Phone


From: Tim Oxleymailto:notifications@github.com
Sent: ‎26-‎10-‎2013 17:48
To: timoxley/functional-javascript-workshopmailto:functional-javascript-workshop@noreply.github.com
Cc: Vijaybrittomailto:andrewvijay@live.com
Subject: Re: [functional-javascript-workshop] Need help getting started. (#27)

you get it, as in your understand?

I just console logged the input. The text in red is what it should look like. The goal of each exercise is to make the green text look like the red text.


Reply to this email directly or view it on GitHub:
#27 (comment)

@timoxley
Copy link
Owner

🎉

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

2 participants