cfO Closure Preso - Simple Test with Type Enforcement
Nothing to complicated going on here!
Check out our fantastic TestClass.js file. It contains two methods.
Method A Takes a number as a param
Method B Takes a string as a param
YOU can make it care though!
Note our JSDoc comments - we are defining the types of these variables that are coming in.
Now, change the parameters in Application.js so we pass in a "3" instead of the number 3.
Finally, Run the build script, you will be warned about improper variable usage!