My name is Clay Hess

Full Stack designer & developer

Importing a Module

To use a module that has the “export” keyword, we have to import it into our code. To do this we use the “import” keyword… This is placed at the top of the file and makes all of the items that have been exported from the animal.js file available. Notice

More »

Creating a Module

In JavaScript, we can use modules to organize our classes so our code is more manageable. We can put as many classes as we want into a module. Each module is its own JavaScript file. Typically, the functionality related to that module is put into the file and organized accordingly…in

More »

Inheritance

In OO languages, we want to stay DRY and avoid getting WET. Inheritance allows us to avoid writing duplicate code. JavaScript classes give us this ability… We can use this animal class and extend (inherit) it to another object. Here’s an example… The output would be “Bongo”. We extended the

More »

Methods

In JavaScript, methods are function that exist on an object. Here is an example… This code would output Bongo says “ugh!”. Notice that we did not use the function keyword. We did need the return though. Note: You might notice that we used backticks in this example. You also might

More »

Constructors and Properties

In JavaScript classes, we put constructors inside of them as follows… The output would be “Bongo”. This syntax should be very familiar to those coming from traditional OO languages, such as C#. Happy Coding! Clay Hess

More »

Class Basics

Classes were brought to JavaScript in ES2015. This allows JavaScript to act more like traditional OO languages. Let’s look at how we create a class in JavaScript. That’s it! Happy Coding! Clay Hess

More »
Projects
First Impressions
Screenshot of fidkids.com
Hurtis Heating
Screenshot of hurtisheating.com
Kids Hub Africa
Screenshot of kidshubafrica.org.za
Norcon Corp
Screenshot of norconcorp.com
Shikwaru Hunting
Screenshot of shikwaruhunting.co.za
Tortoise and Hare Timing
Screenshot of tandhtiming.com
Shikwaru
Screenshot of shikwaru.co.za
Click Here
Previous
Next
Excuse Our Mess! We are currently remodeling!

We are currently in the process of redesigning our site. We appreciate your patience as some areas of our site show chipping and paint peeling. We hope to have it sparkling soon!

Skip to content