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 & teacher at VSCode.pro ๐ŸŽฉ Full-time #OpenSourcerer ๐ŸฆŠ Google Developers Expert for Web ๐Ÿฅ‘ OSS Developer Advocate ๐ŸŒณ Node.js Foundation Community Committee Member ๐Ÿ”ฅ Ridiculously hard-working Full Stack Web Developer ๐Ÿ˜‚ Hilarious comedian โ“ฆ Regular WordPress Core Developer ๐Ÿ“ฃ TEDx Speaker โœŒ๏ธ Spends 50-80% of his time building professional FOSS (Free & Open Source Software) used by over 1,399,687 Developers ๐Ÿ™Œ Cloud Community Evangelist ๐ŸŽฏ JavaScript & DevOps fanboy ๐Ÿ’œ Loves his wife (Maedah) ๐Ÿ• Learn more about Ahmad โ†ฃ

Say ๐Ÿ‘‹ on Twitter @MrAhmadAwais | Subscribe to the Developer's 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!

๐Ÿ”ฅ CHECK OUT โ†’