Solved

Can JS Function .apply cause a stack overflow

Posted on 2014-03-13
3
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Running JavaFX on JDeveloper 12C 1 77
String array comparison 4 46
java example issue 5 44
Bot application - advice 3 61
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

733 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