What is “assert” in JavaScript?

There is no standard assert in JavaScript itself. Perhaps you’re using some library that provides one; for instance, if you’re using Node.js, perhaps you’re using the assertion module. (Browsers and other environments that offer a console implementing the Console API provide console.assert.) The usual meaning of an assert function is to throw an error if the expression passed into the function is false; … Read more

Developing an ad with MRAID.js

I need to develop an ad that’s MRAID compliant. I’ll be hand-coding the ad in HTML5 and not using any authoring software with an MRAID SDK. According to the spec, mraid.js gets injected by the SDK where the ad is hosted. How do I get access to the MRAID functions to test when developing the … Read more