Ahmad Awais

NAVIGATE


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! 🎻

👨‍🏫 Edutainer at VSCode.pro 🎩 An award-winning open-source engineer and developer advocate 🦊 Google Developers Expert for web 🌳 Node.js foundation Community Committee member ✌️ Author of various open-source dev-tools and software libraries used by millions of developers worldwide ⓦ WordPress Core Developer 📣 TEDx Speaker 🙌 Leading developers and publishing technical content for over a decade 😂 Self-confessed tech comedian cracking silly jokes in the JavaScript web and cloud communities 💜 Loves his wife (Maedah) ❯ Learn more about Awais ↣

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

📨

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!