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!
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
znzlcrstkk
Front End Web Development Techdegree Graduate 28,511 Pointsfunction 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
Front End Web Development Techdegree Student 12,417 Pointsone and two are just placeholders that enables the function to pass arguments. Like calling test(4,5); The only parsing I need think of relates to the JSON. https://www.w3schools.com/js/js_json_parse.asp

Tommy Leng
Front End Web Development Techdegree Student 12,417 Pointsi 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.

znzlcrstkk
Front End Web Development Techdegree Graduate 28,511 PointsTommy can you give me some examples about function, with placeholders and arguments? because i dont understand what placeholder mean

znzlcrstkk
Front End Web Development Techdegree Graduate 28,511 PointsCan you more expand what you are explaining?