DEV Community

loading...

Discussion on: Can You write a complex program only using const variables in javascript?

Collapse
khalyomede profile image
Khalyomede

At my (yesterday last day of) job, we wrote an interactive, zoom/pan/drag SVG engine, using Typescript. 0 var, only const or let (and classes), to renew our previous, var full engine we wrote in JS.

Not to mention errors drastically dropped (500 lines long unminifed).

So yes it is possible!