+ 5

[Solved 🙃] What's This Error "Maximum Call Size Exceeded"?

Hey, I'm Making A Code And In The Console It Shows "Maximum Call Size Exceeded" What Should I Do? https://code.sololearn.com/WxI4WBjV6nE8/?ref=app

20th Jul 2021, 1:03 PM
Usman
Usman - avatar
2 Answers
+ 10
Ah, I see what's going on here. You are redefining the built-in Date() function by naming your function "Date". This results in the function becoming recursive (since Date() is called in there). Just rename your Date function to something else.
20th Jul 2021, 1:20 PM
Hatsy Rei
Hatsy Rei - avatar
+ 4
Thank You So Much Sir!
20th Jul 2021, 3:50 PM
Usman
Usman - avatar