JavaScript

ES6: Spread operator

Spread syntax (...) allows an iterable such as an array expression or string to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected, or an object expression to be expanded in places where zero or more key-value pairs (for object[...]

By |January 27, 2021|

ES6: Spread syntax

Spread syntax (...) allows an iterable such as an array expression or string to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected, or an object expression to be expanded in places where zero or more key-value pairs (for object[...]

By |January 27, 2021|Tags: , |

ES6: Introduction

var vs let vs const In this article, var, let and const will be discussed with respect to their scope, use and hoisting. Normally in Javascript we create a variable like this. var x = "StatelyWorld!"; But in ES6 we can also create a variable like this. let x =[...]

By |February 29, 2020|Tags: , |

JavaScript: Scope and the Variable this

var x = 'hello, world!'; // this is in the global scope! //////////////////// function greet(thing) { console.log(this + " says greetings, " + thing); } greet.call("Cami", "earthlings") // Cami says greetings, earthlings //////////////////// var person = { name: "Samantha", greet: function(thing) { console.log(this + " says greetings, " + thing);[...]

By |February 29, 2020|

JavaScript: JSON (JavaScript Object Notation)

In this post, we’ll talk about JSON ( JavaScript Object Notation). What is JSON? JavaScript Object Notation (JSON) is an open-standard file format or data interchange format that uses human-readable text to transmit data objects consisting of attribute-value pairs and array data types (or any other serializable value). It is[...]

By |January 26, 2020|

Javascript : Date & Time Program

Here’s a new program for you. In this program, we will learn how to build a Date & Time Program in JavaScrip. Demo Note: By default, JavaScript will use the browser's time zone and display a date as a full text string   .bg-color{ display:none; font-size: 24px; padding: 30px; }[...]

By |December 12, 2019|

JavaScript: What is AJAX?

Here’s a new article for you. Understanding XMLHttpRequest and Apply in AJAX. If you ever find yourself confused about what 'XMLHttpRequest' is referring to in JavaScript, take a look at the article. Before reading about XMLHttpRequest we will know about AJAX. Asynchronous JavaScript and XML Ajax is a set of[...]

By |October 6, 2019|Tags: , , |

JavaScript: Getting started

JavaScript is used to create client-side dynamic pages. JavaScript is an object-based scripting language which is lightweight and cross-platform. Javascript First Program: console.log("Welcome to Stately World"); Tools For JavaScript Programming There are some tools including frameworks, debuggers, text editors, etc. that will help you code efficiently using JavaScript. Text Editors You can[...]

By |June 16, 2019|Tags: |
Go to Top