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[...]
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[...]
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 =[...]
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);[...]
JavaScript: Get Element
Find element by ID Find elements by class Find elements by tag Find elements by attribute
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[...]
JavaScript: Application programming interface (API)
What is an API? (Application Programming Interface) In this post, we’ll talk about API (Application programming interface ). >What is an API?>How is it used?>When and where is it used? API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to[...]
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; }[...]
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[...]
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[...]