Programming is hard. Well, anything technical is inherently hard. With that out of the way, today I’m writy a short post to let you in on a secret about what is pragma
Β in the world of programming languages.
So,Β What Does “Pragma” Mean in Programming?#
Pragma is short for pragmatic information. So, simple. In plain English, pragmatic is an adjective that means sensible and practical. In programming, pragma refers to:
π€Β JavaScript also has few pragmas, one of them is strict
.
'use strict';
By the above pragma, the JavaScript code will be executed in strict mode. In strict mode, bad syntax isn’t allowed, hoistingΒ isn’t
done, silent errors are shown, etc. It helps in writing a more secure and optimized JavaScript code.
π¨
Developers Takeaway
Takeaway my professional opinion on open-source, developer relations, growing your business with family, and everything in between! Delivered to your inbox a couple of times every year. I'm even funny at times. I hate spam β pinky-promise!
π¨βπ»π©βπ» 118,947 Developers Already Subscribed