Skip to main content

Tag: es6

Browse all articles tagged with "es6"

5 articles

  • How to use array methods in Javascript?

    In JavaScript, arrays have numerous methods. Here’s a list of the commonly used array methods available: push Array.prototype.push() Add one or more elements to the end of an array and return the new length. const jottupFruits = [‘apple’, ‘banana’]; const newLength = jottupFruits.push(‘cherry’); console.log(jottupFruits); // Expected output: [‘apple’, ‘banana’, ‘cherry’] console.log(newLength); // Expected output: 3 […]

  • How Functions Work in Javascript?

    What are Functions? Functions in JavaScript are objects that allow you to encapsulate a piece of code so it can be reused and invoked throughout your program. They can accept parameters and return values. What is Function Declaration? Function Declaration allows you to define a function using the function keyword, followed by the name of […]

  • What is Promises?

    JavaScript, known for its asynchronous capabilities, revolutionized with the introduction of Promises. A clear way to deal with asynchronous operations without sinking in the callback hell, Promises pave the way for more readable and maintainable code. Let’s dive deep into the world of Promises! The Essence of Promises A Promise in JavaScript represents a value […]

  • Understanding prototype in javascript

    Prototype is fundamental concepts that every JavaScript developer should understand. In this comprehensive guide, we’ll dive deep into the concept of prototypes, uncover its significance, and explore how it can enhance your JavaScript development journey. Understanding Prototypes At its core, JavaScript is a prototype-based language. This means that objects can inherit properties and methods from […]

  • JavaScript Variables and Constants

    Fundamentals of variables in JavaScript, how they work, their scope, and best practices for using them in your code. Whether you are a beginner or an experienced developer, this guide will provide you with valuable insights into working with JavaScript variables. What are Variables in JavaScript? In JavaScript, variables are containers that hold data. They […]