Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


function and parsing

Hi, can somebody explain to me, what means parsing? And the second question, about javascript function, when i write a function like this >> function test (one, two) {}. what does it mean one and two, what they do? And please give me some examples if you can

4 Answers

Tommy Leng
Tommy Leng
Front End Web Development Techdegree Student 12,417 Points

i am using placeholders for the word arguments since I thought that would have been easier. The arguments are the things inside a function's parenthesis. For example function (arguments){}. I called them placeholders since they just are there to be replace. For example

function add(one,two){ return one + two; }

if u call the add function like add(1,2); The result would be 3. Again the arguments are just a placeholders that they are meant to be replaced.

Tommy can you give me some examples about function, with placeholders and arguments? because i dont understand what placeholder mean

Can you more expand what you are explaining?