paint-brush
Tail Call Optimization (TCO) in JavaScriptby@jimrottinger
8,995 reads
8,995 reads

Tail Call Optimization (TCO) in JavaScript

by Jim Rottinger7mFebruary 10th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

One of the behind-the-scenes changes that is coming with ES6 is support for tail call optimization (TCO). Tail call optimization means that, if the last expression in a function is a call to another function, then the engine will optimize so that the call stack does not grow. Let’s take a look.

Company Mentioned

Mention Thumbnail
featured image - Tail Call Optimization (TCO) in JavaScript
Jim Rottinger HackerNoon profile picture
Jim Rottinger

Jim Rottinger

@jimrottinger

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite