I have a function with one parameter like : function(a){/do something/}
if I pass a string to the function then is there any size limit of string which I can pass?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not defined in the standard ==> implementation dependant.
A cool resource. Cool because Crockford is the first response, and the rest of the discussion quotes other known names in the JS world.
As clarification, the limit is not going to be on the string size you can pass to the function, but just a limit on the string size that the language supports. I.e. if you have no concerns about the size of the string in one place, then passing it is fine.