Hey Twitter Dev Community πŸ‘‹ I have started tweeting about JavaScript and here's the first one 😊 JavaScript Tip 1⃣: Console common methods The console object provides access to the browser's debugging console. #100DaysOfCode #CodeNewbie #javascript #js

Browsers

JavaScript Tips & Tricks 3⃣: IIFE An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined. It is a design pattern that contains two major parts: 🧡 #100DaysOfCode #CodeNewbies #javascript

JavaScript

JavaScript Tips & Tricks 4⃣: console.table(); πŸ‘‰ Displays tabular data as a table. πŸ‘‰ This function takes one mandatory argument `data`, which must be an array or an object, and one additional optional parameter `columns`. #100DaysOfCode #CodeNewbies #javascript

Browsers

Using the `| |` operator is very common to assign a default value when the one you are attempting to assign is `null` or `undefined`. However, this approach could lead to a few potentially unintended results. Let's see the code below;

JavaScript

JavaScript Tips & Tricks 7⃣: Swapping variables using destructuring assignment syntax πŸ—’οΈ Destructuring assignment syntax is described in Tips & Tricks 6⃣ #100DaysOfCode #CodeNewbie #webdevelopment #javascript

JavaScript

JavaScript Tips & Tricks πŸ”Ÿ: Conditional (ternary) operator πŸ”Ή In a simple word, the ternary operator is a shortcut for the if-else statement. For more clarity, let's see the examples below πŸ‘‡ #100DaysOfCode #javascript

JavaScript

JavaScript Tips & Tricks 9⃣: Rest Parameter The rest parameter syntax allows a function to accept an indefinite number of arguments as an array, providing a way to represent variadic functions in JavaScript. #100DaysOfCode #CodeNewbies #javascript

JavaScript

JavaScript Tips & Tricks 5⃣: The `??` operator The nullish coalescing operator is a logical operator that returns its right-hand side operand when its left-hand side operand is null or undefined, otherwise returns its left-hand side operand. πŸ§΅πŸ‘‡ #CodeNewbies #javascript

JavaScript

JavaScript Tips & Tricks 8⃣: Spread syntax (...) JavaScript ES6 (ECMAScript 6) introduced Spread syntax which, allows an iterable such as an array, string, or object to be expanded. For having a better idea, tap the images below πŸ‘‡ #100DaysOfCode #CodeNewbies #javascript

JavaScript

Hey DEV community πŸ‘‹ Let's learn another HOT JS TIP 🌢️ JavaScript Tips & Tricks 1⃣6⃣: Exponentiation operator #100DaysOfCode #javascript

JavaScript

Hey DEV community πŸ‘‹ Let's learn about Default function parameters 🀩 JavaScript Tips & Tricks 1⃣4⃣: Default function parameters #100DaysOfCode #CodeNewbies #javascript

JavaScript

Hey DEV community πŸ‘ JavaScript Tips & Tricks 1⃣5⃣ What do you prefer? Math.pow method or double asterisk operator πŸ€” #100DaysOfCode #javascript

JavaScript

The tweet will be reviewed and posted as soon as possible

{{ newSnippetForm.errors.url[0] }}

{{ newSnippetForm.errors.categories[0] }}