AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
JavaScript Classes Are Just Syntactic Sugar
Sugar or syntactic sugar up now you often you'll hear it just shortened to sugar many times What does this mean? It's basically what you're getting is a nicer more human readable syntax for the same things that you'd be doing in a maybe not even always more complex way but sometimes just an uglier way so to say. But me personally, you know, I'm a fan of sugar in many ways You know it should be evident by my usage of spelt because something like the dollar sign and spelt Is syntactic sugar to reference a subscription? And when we got back ticks for template strings, that's just syntactic sugar over um the ability to Close a string