See the Pen Bootstrap4LayoutBoxSizingExample3 by kenan (@kenanhancer) on CodePen.
Month: January 2018
Bootstrap 4 Box Sizing Layout Example 2
See the Pen Bootstrap4LayoutBoxSizingExample2 by kenan (@kenanhancer) on CodePen.
Bootstrap 4 Box Sizing Layout Example 1
See the Pen Bootstrap4LayoutBoxSizingExample1 by kenan (@kenanhancer) on CodePen.
Bootstrap 4 Flex Layout Example 1
See the Pen Bootstrap4_LayoutExample1 by kenan (@kenanhancer) on CodePen.
Bootstrap 4 Two Columns Form Example 1
Bootstrap 4 Example 1
JavaScript Promise and Class in ES6
JavaScript Promise in ES6
JavaScript Prototype Inheritance with IIFE in ES5
I try demonstrate inheritance with immediately invokable function expression(IIFE) and prototype in the following code.
This sample code is written in different concepts you should read the following posts as well.
The following code demonstrate classic inheritance with JavaScript.
Same code as shown in the above, but I added a new function named inherit
in global Function.prototype
so that we don't need to write same code for inheritance. It looks like Employee.inherits(Person);
or Manager.inherits(Employee);
Notice that although Employee
and Manager
functions doesn't have inherits
function, it works due to global Function.prototype.inherits
JavaScript Class, Inheritance, Override in ES6
ES6, also known as ECMAScript2015, introduced classes. Notice that classes are used in order to use inheritance.
This sample code is written in different concepts you should read the following posts as well.
Presumably this demo looks more friendly to you 🙂 actually I think so. But don't forget that no magic here still, this code is also transpiled(or compiled) to ES5 for browser compatibility.