?
Solved

Can JS Function .apply cause a stack overflow

Posted on 2014-03-13
3
Medium Priority
?
222 Views
Last Modified: 2014-03-14
Hi,
 My brother is a JS Node coder and was looking for articles on how the function .apply can cause stack overflow.

any help is appreciated.
Thanks
0
Comment
Question by:wblake4
3 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39928322
Any function in pretty much any (applicable) programming language can cause a stack overflow. A stack overflow means you exceeded the bounds of the memory allocated to your process. Too many variable declarations, unchecked recursive function calls, and too-nested of non-recursive function calls could all cause an SO.
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 39928629
Posting JavaScript questions in the Java TA is not appropriate, and might make your question less likely to be answered. http://technojeeves.com/joomla/index.php/free/127-javascript-is-not-java
0
 

Author Closing Comment

by:wblake4
ID: 39929317
I should have known,  thanks.

The other solution posted was helpful aslo but I clicked too fast on accepted answer and I can't find my way back.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month15 days, 9 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question