Archive for the ‘functions’ Category

Instant Form Validation Using JavaScript

Posted on: No Comments
HTML5 introduces a couple of new attributes for implementing browser-based form validation. The pattern attribute is a regular-expression that defines the range of valid inputs for textarea elements and most types of input. The required attribute speci...

Back to Basics: JavaScript Operators, Conditionals & Functions

Posted on: No Comments
Table of Contents JavaScript Operators Assignment Operators Arithmetic Operators Addition Subtraction Multiplication Division Modulus Increment Decrement Comparison Operators Equal Strict Equal Not Equal Strict Not Equal Less Than Less Than or Equal To...

My New Favorite ES6 Toy: Destructured Objects as Parameters

Posted on: No Comments
Like a lot of other developers, I’m working through my continued education learning what I can about ES6. One of the ways I’m doing this is to attend workshops by smart people. I went to Kyle Simpson’s ES6: The Good Parts course and found myself ...

Quick Tip: Function Expressions vs Function Declarations

Posted on: No Comments
JavaScript has two different ways of creating functions. Function declarations have been used for a long time, but function expressions have been gradually taking over. function funcDeclaration() { return 'A function declaration'; } var funcEx...