Solved

Can JS Function .apply cause a stack overflow

Posted on 2014-03-13
3
212 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Systems talking to each other 5 126
sites similar to codingbat to improve coding hanson skills 3 41
javap not working 8 39
servlet filter example 37 46
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now