DEV Community


Discussion on: Sh*tpost: can we stop saying "syntactic sugar"?

simov profile image
simo • Edited

When used, the term Syntax Sugar means that you should probably look it up, and see how this thing can be desugared to better understand the topic.

I'm giving you an example:

if (true) {
  let be = 'nice!'

is desugared to:

if (true) (() => {
  var be = 'nice!'

You're welcome!