Javascript – Difference Between var, let and const

ES6 introduced 2 new ways of declaring variables: let and const. There are a couple of main differences between these variable declaration methods and they still seem to confuse people. Let me very briefly explain the differences between var, let

Read More Javascript – Difference Between var, let and const

Some examples of async functions instroduced in ES8

Introduced in ES2017 (ES8) asynchronous functions are functions which operate asynchronously via the event loop, using an “implicit” Promise to return its result. Syntax and structure of your code using async functions will be much more like using standard synchronous functions. I am not going to write explanations

Read More Some examples of async functions instroduced in ES8

Removing last character using javascript – substring, substr, slice methods

javascript-slice-substr-substring

In this post, I would like to present you with 3 different 1-line scripts that are used a lot. These snippets are used to remove the last character from a string. When may you need this? You may be building

Read More Removing last character using javascript – substring, substr, slice methods

Difference between window.onload and $(document).ready()

Do you think $(document).ready() and window.onload are the same thing? Do you use one for the other? Do you use them interchangeably? If you do so, you are wrong. $(document).ready() and window.onload are not the same thing. What did you

Read More Difference between window.onload and $(document).ready()

Cannot read property ‘toLowerCase’ of undefined

javascript error undefined

I am finally back with another post after a while. I had this time period where I got busy with other things in life and felt a little tired for coding and blogging. That seems to be over now. Thank

Read More Cannot read property ‘toLowerCase’ of undefined

What is TypeScript, ECMAScript and JavaScript?

what is typescript

After a long break, I am back with another productive and informative post. Have you heard about the language TypeScript? What is the relation between JavaScript, ECMAScript and TypeScript? Here is a brief answer to this question. What is TypeScript?

Read More What is TypeScript, ECMAScript and JavaScript?

Lambda Expressions and Javascript

Have you ever heard of the term “lambda”? Does it sound like a complicated thing to you? Don’t be scared! After reading this short post, it won’t be that scary. Lambda Expressions in Various Programming Languages So, how do they

Read More Lambda Expressions and Javascript

Passing Javascript Functions to Other Javascript Functions as Arguments

In my last post, I briefly talked about variables, functions and how you can put functions into variables to be later called using the variable name. In this mini post, I will talk about passing Javascript functions to other Javascript

Read More Passing Javascript Functions to Other Javascript Functions as Arguments

Functions as Variables in Javascript

A JavaScript function is a block of code designed to perform a particular task. A JavaScript function is executed when “something” invokes it (calls it). A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses

Read More Functions as Variables in Javascript

Javascript Inheritance – Prototype and Prototype Chain

I am a big fan of javascript and I love scripting. In this post I will be talking about one of the most important concepts in javascript. Inheritance, protoyping and prototype chain.   If you are familiar with oop (object-oriented

Read More Javascript Inheritance – Prototype and Prototype Chain