Abhishek Dandriyalabhishek-dandriyal.hashnode.dev·Apr 10, 2024Functions in JavascriptFunction Expression: A function expression in JavaScript is when you assign a function to a variable. It's an alternative way to define a function compared to the traditional function declaration. In your example: const square = function(num) { r...Discussiife in javascipt
Ricardo Rocha // 👨💻bittonic.hashnode.dev·Mar 25, 2024🦸♂️ Unveiling the Power of JavaScript Functions: Your Code's SuperheroesLet's dive into 🤿 the wonderful world of JavaScript functions – those handy chunks of code that make your life easier. Think of them as your code's superheroes, ready to save the day whenever you call upon them! 🔧 Function 101: The Building Block S...DiscussJavaScript
Jinali Ghogharijinali.hashnode.dev·Mar 21, 2024Shorthand Syntax Expression | Fat Arrow Notation | Arrow FunctionsShorthand Syntax Expression Generally, shorthand syntax expression are concise way of writing certain code patterns that are common and repetitive. // Longhand int x = 10; String result; if (x > 5) { result = 'x is greater than 5'; } else { r...DiscussDartshorthand syntax expression
Shivam Rajshivamdevs.hashnode.dev·Mar 15, 2024Unleash Your Coding Crew: Regular vs. Arrow Functions with One Piece!Calling all code pirates and aspiring nakama (crewmates)! ☠️ This week, we set sail on the high seas of programming with the legendary Straw Hat Pirates! Luffy and his crew are about to unlock the secrets of functions - the essential building blocks ...Discuss·1 like·29 readsLearn to Code with Anime
Vishal Kumargokuthecoder.hashnode.dev·Feb 16, 2024"this" keyword in javascriptMany student has different thought about "this" keyword, just like ''this'' keyword is only available in Regular Function but not in Arrow Function . But if you ask them to , what is the reason of this statement they don't know, so today i will dissc...Discussregularfunction
Md Shah Aman Patwarymdshahamanpatwary.hashnode.dev·Feb 16, 2024JavaScript Arrow Functions vs Regular FunctionsIn JavaScript, there are two main ways of writing functions. You can create functions using the regular function syntax. Or you can use the arrow function syntax. In this article, you will learn how to use both options. You'll also learn about the di...Discuss·31 readsfunctions
Sasika Chandilasasika.hashnode.dev·Feb 11, 2024Mastering React with ES6✨React, the popular JavaScript library for building user interfaces has revolutionized the way developers create web applications. With the introduction of ES6 (ECMAScript 2015), React development has become even more powerful and expressive. In this ...Discuss·1 like·40 readsreact ES6
Shefalidevshefali.hashnode.dev·Feb 5, 2024Anonymous and Arrow Functions in JavaScriptJavaScript provides various ways to define and use functions. Two commonly used types of functions are anonymous functions and arrow functions. In this blog, we will learn about these two functions in detail. Let's get started!🚀 Anonymous Functions ...DiscussWeb Development
Pritam Mukherjeepritammukherjee.hashnode.dev·Jan 5, 2024Understanding 'this' in JavaScript: Global Context, Functions, and Arrow Functions Explained".1.Global Scope:- This Refers to the Global object in the Dom .The Global object for the Dom is 'Window'. console.log(this) in this case the output will be "Window" 2.Within Function:- This will print undefined within Functions in Strict Mode.But In N...DiscussFunction Context
Piyush Agrawalpiyushagrawal.hashnode.dev·Jan 2, 2024This with Arrow functionIn arrow functions, the this keyword behaves differently compared to regular functions. Arrow functions do not have their own this context; instead, they inherit the this value from the enclosing lexical scope. This behavior is often referred to as "...DiscussJavaScript