Ahmad Awais

SHARE


What Does “Pragma” Mean in Programming?

Ahmad AwaisAhmad Awais

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.

That’s about it.

Peace! 🎻

📨

TheDevTakeaway: Developers' Newsletter!

Takeaway my professional opinion about Open Source, JavaScript/Cloud, Full Stack Development, building a business, growing a family, and everything in between! Delivered to your inbox once a month. 🤣 I'm even funny some times. 👻 I hate spam! Pinky Promise!

🎩 Full-time #OpenSourcerer 🥑 JavaScript Developer Advocate 🔥 Ridiculously hard-working Full Stack Web DeveloperRegular WordPress Core Developer 📣 TEDx Speaker ✌️ Spends 50-80% of his time building professional FOSS (Free & Open Source Software) used by over 218,900 Developers 🙌 Cloud Community Evangelist 🎯 JavaScript & DevOps fanboy 😂 Cracks silly jokes 💜 Loves his wife (Maedah) 🍕 Learn more about Ahmad ↣

Say 👋 on Twitter @MrAhmadAwais | Subscribe to the WordPress Takeaway!