<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Sahil Upadhyay</title>
    <description>The latest articles on Forem by Sahil Upadhyay (@big_smoke).</description>
    <link>https://forem.com/big_smoke</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1210861%2F60b85f15-e825-4c31-a25f-a0e5c8b2da3b.jpg</url>
      <title>Forem: Sahil Upadhyay</title>
      <link>https://forem.com/big_smoke</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/big_smoke"/>
    <language>en</language>
    <item>
      <title>ODD SIDE OF JAVASCRIPT😲!! 𝐉𝐚𝐯𝐚𝐒𝐜𝐫𝐢𝐩𝐭'𝐬 𝐐𝐮𝐢𝐫𝐤𝐲 𝐒𝐞𝐜𝐫𝐞𝐭𝐬!</title>
      <dc:creator>Sahil Upadhyay</dc:creator>
      <pubDate>Thu, 18 Jan 2024 04:13:19 +0000</pubDate>
      <link>https://forem.com/big_smoke/odd-side-of-javascript--3i9</link>
      <guid>https://forem.com/big_smoke/odd-side-of-javascript--3i9</guid>
      <description>&lt;p&gt;🚀 Ready for a jaw-dropping journey into the "Odd Side of JavaScript" 😲!? Brace yourself as we unravel the coding curiosities and share the surprising secrets that make JavaScript stand out. 💡💻 Get set for a fun ride through the unexpected twists and turns of this programming language! 🌐✨.&lt;/p&gt;

&lt;p&gt;This post surely will be beneficial when you are in some where between solve the problem and search for the solution and Stack Overflow, ChatGPT might not be working as you want. Lets get started 🙌🌟..&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;u&gt;Array's Equal Strings&lt;/u&gt;&lt;/strong&gt;:--
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var a = [0, 1, 2];
var b= [0, 1, 2];
var c = 0, 1, 2';
a = c; // true
b = c; // true
a = b; // false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In JavaScript, arrays can seem similar to strings. If you have arrays like 'a' and 'b' with the same values, they are considered equal. However, if you introduce a string 'c' with the same values as 'a' and 'b', it won't be equal to them. So, when you say 'a = c' or 'b = c', it evaluates as true because they have the same values. But if you try 'a = b', it's false, even though they seem the same. This quirky behavior is a result of how JavaScript handles equality between arrays and strings, making it important to understand these nuances in your code.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;u&gt;Array's Are Not Equal&lt;/u&gt;&lt;/strong&gt;:--
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;['a', 'b'] !== ['a', 'b'] // true
['a', 'b'] != ['a', 'b'] // true
['a', 'b'] == ['a', 'b'] // false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In JavaScript, comparing arrays isn't as straightforward as it might seem. If you use '!==', it evaluates as true even if two arrays have the same values. Similarly, '!=' also returns true. Surprisingly, when you use '==', which might suggest equality, it gives a false result for arrays with the same content. This occurs because JavaScript compares arrays by reference, not content. So, even if arrays look the same, if they're separate instances in memory, they're considered not equal. This quirk highlights the importance of understanding how JavaScript handles array comparisons, ensuring precise and accurate coding.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;u&gt;String Is Not A String&lt;/u&gt;&lt;/strong&gt;:--
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;typeof thecodecrumbs'; // "string"

'thecodecrumbs' instanceof String; // false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Even though we use quotes for strings, they are considered primitive types, not objects. When you check the type with 'typeof', it correctly identifies it as a "string". However, if you try to use 'instanceof String', it surprisingly returns false. This discrepancy happens because primitive strings are not instances of the String object. They behave like strings but don't have the full set of properties and methods that come with the String object. This quirk is essential to note when working with strings in JavaScript, ensuring you use appropriate methods for the data type.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;u&gt;Null Comparision&lt;/u&gt;&lt;/strong&gt;:--
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
typeof null;  // "object"

null instanceof Object;  // false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In JavaScript, the 'typeof null' might seem confusing, as it returns "object," but null isn't an object. This behavior is a &lt;em&gt;historical quirk&lt;/em&gt;. When JavaScript was created, 'null' was designed to represent the absence of a value, and using 'typeof' was a way to check for it. However, 'null instanceof Object' surprisingly evaluates as false. This discrepancy emphasizes that while 'typeof' suggests an object type, null is a distinct primitive value in JavaScript. It's a subtle nuance to be aware of when working with null values and object comparisons in your code.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;u&gt;NaN Is A Number&lt;/u&gt;&lt;/strong&gt;:--
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;typeof NaN   // Number
123 === 123  //true
NaN === NaN  // false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;NaN (Not a Number) is indeed a type of number, as indicated by 'typeof NaN' returning "Number." However, a quirky aspect arises when you compare NaN values using '==='. While '123 === 123' rightly evaluates as true, 'NaN === NaN' surprisingly results in false. This behavior occurs because NaN represents an undefined or unrepresentable value, and according to the specifications, NaN is not equal to itself. This uniqueness in NaN comparisons highlights the need for careful handling when dealing with unexpected or undefined numerical values in JavaScript code.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;u&gt;Array's And Object&lt;/u&gt;&lt;/strong&gt;:--
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[][] // ""
[] + {} // "[object Object]"
{} + [] // 0
{} + {} // NaN
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Combining arrays and objects can lead to quirky results. When you use '[][]', it results in an empty string. Adding an empty array to an empty object '[] + {}' surprisingly gives "[object Object]". However, switching the order '{}' + [] results in 0, and combining two empty objects '{}' + {} yields NaN. These outcomes stem from JavaScript's complex type coercion rules, where the addition operator and object conversions can produce unexpected and diverse results. Understanding these nuances is crucial for precise coding when working with arrays and objects in JavaScript.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;u&gt;Boolean Maths&lt;/u&gt;&lt;/strong&gt;:--
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;true + false //1
true + true == true  // false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In JavaScript, boolean values undergo interesting behavior in mathematical operations. When you add 'true + false,' it surprisingly evaluates to 1. However, when you compare the result of 'true + true' to 'true,' it returns false. This quirk arises because JavaScript converts booleans to numeric values during mathematical operations, with 'true' being equal to 1 and 'false' to 0. So, 'true + true' becomes 2, which is not equal to 'true.' This illustrates the subtle and sometimes unexpected ways boolean values interact with numerical operations in JavaScript.&lt;/p&gt;




&lt;h2&gt;
  
  
  CONCLUSION
&lt;/h2&gt;

&lt;p&gt;In the curious world of JavaScript oddities, we've uncovered fascinating quirks that make coding both intriguing and challenging. From arrays behaving unexpectedly to boolean's playing numerical games, understanding these nuances is key to writing precise and effective code. As you navigate the quirks of JavaScript, &lt;em&gt;remember to follow me&lt;/em&gt; for more insights into the coding universe. Your thoughts and opinions are valuable, so don't forget to comment below! Let's continue this coding journey together, exploring the peculiar and delightful aspects of the language. Happy coding! 🚀💻 #JavaScriptAdventures #CodeQuirks #FollowForMore&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>learning</category>
    </item>
    <item>
      <title>Optimizing Your JavaScript: Best Practices Every Developer Should Know!!</title>
      <dc:creator>Sahil Upadhyay</dc:creator>
      <pubDate>Sun, 24 Dec 2023 05:11:04 +0000</pubDate>
      <link>https://forem.com/big_smoke/optimizing-your-javascript-best-practices-every-developer-should-know-4o4n</link>
      <guid>https://forem.com/big_smoke/optimizing-your-javascript-best-practices-every-developer-should-know-4o4n</guid>
      <description>&lt;p&gt;Hello, fellow code enthusiasts! 🌟 Ever felt like your JavaScript could use a turbo boost? You're in luck! Dive with us into the exciting realm of JavaScript optimization. 🎯 In today's lightning-paced web world, writing crisp and effective code isn't just cool—it's essential. This guide is your golden ticket 🎫 to level up your coding game. Whether you're a newbie 👶 or a seasoned pro 🎓, we've got tips that'll make your code zoom! 💨 Ready to make your scripts sleeker, faster, and more efficient? Strap in, because we're about to supercharge your JavaScript journey! 🚀🔥&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;u&gt;&lt;strong&gt;Avoid Global Variables&lt;/strong&gt;&lt;/u&gt; : --&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Global variables and function names might seem convenient, but they come with pitfalls in JavaScript. The challenge? Every JavaScript file included on a page shares the same scope. &lt;br&gt;
Think of it like everyone accessing the same playground—potential chaos ensues. &lt;br&gt;
To sidestep this issue, consider using an Immediately Invoked Function Expression (IIFE). By wrapping your code within an IIFE, you create a protective boundary. This technique ensures that your variables and functions remain localized, reducing the risk of conflicts with other scripts.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Without IIFE (potential global variable)
var message = "Hello, World!";
function displayMessage() {
  console.log(message);
}
displayMessage();  // Outputs: Hello, World!

// With IIFE (keeping variables local)
(function() {
  var localMessage = "Hello, Local World!";
  function displayLocalMessage() {
    console.log(localMessage);
  }
  displayLocalMessage();  // Outputs: Hello, Local World!
})();

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;2.&lt;u&gt;&lt;strong&gt;Triple Equal&lt;/strong&gt;&lt;/u&gt; : --&lt;/p&gt;

&lt;p&gt;In JavaScript, the == operator tries to be helpful by changing data types to match before comparing. For instance, it might turn a number into a string to see if they're the same. On the other hand, === (the triple equal) is more strict. It not only checks if values are equal but also ensures they're of the same type. So, while == might say a number and its string version are the same, === would see them as different because of their types. In short, === gives you a more precise and less surprising comparison in your code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Using the == operator (loose equality)
let looseEqualityResult = (5 == '5');  
console.log(looseEqualityResult);  // Outputs: true (type coercion happens)

// Using the === operator (strict equality)
let strictEqualityResult = (5 === '5'); 
console.log(strictEqualityResult); // Outputs: false (strict comparison of type and value)

// Further illustration with different types
let strictComparison = (5 === 5); 
console.log(strictComparison);    // Outputs: true (both value and type match)

let anotherStrictComparison = (5 === 5.0); 
console.log(anotherStrictComparison); // Outputs: true (same value and type, even if different numeric representations)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;3.&lt;u&gt;&lt;strong&gt;Modularize&lt;/strong&gt;&lt;/u&gt; : --&lt;/p&gt;

&lt;p&gt;Modularizing your code means breaking it down into smaller, focused functions, each handling a specific task. Think of it like organizing a messy toolbox; you separate tools based on their functions, making them easier to find and use. By doing this, you create a clear roadmap for anyone reading or working on your code. Instead of sifting through a jumbled mess, developers can quickly pinpoint which function does what. This not only simplifies debugging but also enhances collaboration. Plus, if you need to update or tweak something later on, you'll know exactly where to look.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Without Modularization
function calculateAreaAndPerimeter(radius) {
  const area = Math.PI * radius * radius;
  const perimeter = 2 * Math.PI * radius;
  console.log(`Area: ${area}`);
  console.log(`Perimeter: ${perimeter}`);
}

// With Modularization
function calculateArea(radius) {
  return Math.PI * radius * radius;
}

function calculatePerimeter(radius) {
  return 2 * Math.PI * radius;
}

// Using the Modularized Functions
function displayResults(radius) {
  const area = calculateArea(radius);
  const perimeter = calculatePerimeter(radius);
  console.log(`Area: ${area}`);
  console.log(`Perimeter: ${perimeter}`);
}

// Call the Modularized Function
displayResults(5);  // Outputs Area and Perimeter using separate, focused functions

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;4.&lt;u&gt;&lt;strong&gt;Declare Objects With const&lt;/strong&gt;&lt;/u&gt; : -- &lt;/p&gt;

&lt;p&gt;When you declare an object using const, you're setting it in stone. This means the object's identity won't change, preventing accidental alterations to its type or content. Think of it as locking a treasure chest; once set, its contents remain unchanged. By using const for objects, you ensure stability and avoid unexpected modifications in your code. It's a straightforward way to safeguard your object's structure and integrity throughout your program.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Declaring an object using const
const person = {
  name: "John",
  age: 30
};

// Trying to reassign the object
// This will throw an error because 'person' is a constant and cannot be reassigned
// person = {};  // Uncommenting this line will result in an error

// However, you can still modify the properties of the object
person.age = 31;

console.log(person);  // Outputs: { name: "John", age: 31 }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;5.&lt;u&gt;&lt;strong&gt;Optimize Loops&lt;/strong&gt;&lt;/u&gt; : --&lt;/p&gt;

&lt;p&gt;Loops are powerful but can slow down your code if mishandled. A common pitfall? Reading an array's length repeatedly within a loop. This constant check eats up unnecessary time. A smart workaround is to store the array's length in a separate variable before the loop starts. By doing so, you sidestep repetitive recalculations and make your loops more efficient. &lt;br&gt;
It's like prepping ingredients before cooking; once ready, you focus on the task without pausing to measure repeatedly. In essence, optimizing loops by caching the length enhances performance and ensures smoother code execution.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Bad Practice: Reading array length in each iteration
const items = [10, 20, 30, 40, 50];
let sum = 0;

for (let i = 0; i &amp;lt; items.length; i++) {
  sum += items[i];
}
console.log("Sum using inefficient loop:", sum);  // Outputs: 150

// Better Practice: Caching array length before loop
let efficientSum = 0;
const length = items.length;  // Caching array length

for (let i = 0; i &amp;lt; length; i++) {
  efficientSum += items[i];
}
console.log("Sum using optimized loop:", efficientSum);  // Outputs: 150

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;6.&lt;u&gt;&lt;strong&gt;Avoiding new Keyword&lt;/strong&gt;&lt;/u&gt; : --&lt;/p&gt;

&lt;p&gt;Using the 'new' keyword in JavaScript can add unnecessary complexity and potential errors to your code. Rather than using constructs like new String() or new Number(), direct and simpler alternatives exist, such as plain strings or numbers. &lt;br&gt;
By bypassing 'new', you streamline your code, reduce the risk of unexpected behaviors, and boost readability. This approach ensures that your JavaScript is cleaner, more intuitive, and easier to maintain, making the development process smoother and more efficient.&lt;/p&gt;

&lt;p&gt;Few Alternative of new keyword:---&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use "" instead of new String()&lt;/li&gt;
&lt;li&gt;Use O instead of new Number()&lt;/li&gt;
&lt;li&gt;Use false instead of new Boolean()&lt;/li&gt;
&lt;li&gt;Use {} instead of new Object()&lt;/li&gt;
&lt;li&gt;Use [] instead of new Array()&lt;/li&gt;
&lt;li&gt;Use /()/ instead of new RegExp()&lt;/li&gt;
&lt;li&gt;Use function ()() instead of new Function()&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  CONCLUSION
&lt;/h2&gt;

&lt;p&gt;Hey there, fellow coders! 🎉 Mastering JavaScript doesn't have to be tricky. With the right tips and tricks, you can make your code shine brighter and run faster. Remember, in today's tech world, efficiency is key! 🗝️ Whether you're just starting out or have been at it for a while, these insights are here to help you level up. So, keep practicing and exploring. Need more guidance? _Follow me _for more helpful tips and insights. Together, let's make your JavaScript journey smooth and exciting! 🚀 Happy coding, and see you on the next adventure! ✨&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>"Transform Your Website Instantly: 6 Must-Have Tools for the Ultimate 'Wow' Effect !✨"</title>
      <dc:creator>Sahil Upadhyay</dc:creator>
      <pubDate>Thu, 21 Dec 2023 12:00:00 +0000</pubDate>
      <link>https://forem.com/big_smoke/transform-your-website-instantly-6-must-have-tools-for-the-ultimate-wow-effect--3f60</link>
      <guid>https://forem.com/big_smoke/transform-your-website-instantly-6-must-have-tools-for-the-ultimate-wow-effect--3f60</guid>
      <description>&lt;p&gt;Hey Everyone! 🌟&lt;/p&gt;

&lt;p&gt;Picture this: You step into a website, and instantly, it feels like stepping into a mesmerizing world. That's the essence of a stellar user experience. In today's digital realm, where every user's attention is gold, creating a memorable online journey isn't just desirable—it's crucial!&lt;/p&gt;

&lt;p&gt;But here's the kicker: What if you could sprinkle some magic dust onto your website to make visitors go "Wow!" right from the start? &lt;/p&gt;

&lt;p&gt;In this post, we're on a thrilling quest to unveil the "6" game-changers of web design—tools that can morph your site from a basic platform to an unforgettable digital spectacle. Whether you're a seasoned designer, a budding entrepreneur, or someone with a passion for all things digital, this guide is your treasure map.&lt;/p&gt;

&lt;p&gt;Ready for the adventure? Let's make your digital space unforgettable! 🚀✨&lt;/p&gt;

&lt;p&gt;1.&lt;u&gt;&lt;strong&gt;Animate On Scroll&lt;/strong&gt;&lt;/u&gt; : --&lt;/p&gt;

&lt;p&gt;"Animate on Scroll" is a cool web design trick where &lt;br&gt;
 things on a webpage move or change as you scroll down. &lt;br&gt;
 Instead of just looking at still pictures or text, users &lt;br&gt;
 get a more interactive experience.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oiaIGdgM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d014wqj8vmuxha2qxtt7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oiaIGdgM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d014wqj8vmuxha2qxtt7.png" alt="AOS" width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Why's this great? It keeps visitors interested and helps &lt;br&gt;
 highlight important stuff. Even if some parts of your &lt;br&gt;
 page stay in one place (like a menu bar), they can still &lt;br&gt;
 have some fun animations. In short, "Animate on Scroll" &lt;br&gt;
 makes your website more exciting and keeps people looking &lt;br&gt;
 and scrolling!&lt;/p&gt;

&lt;p&gt;Check Out The Tool here :-- (&lt;a href="https://michalsnik.github.io/aos/"&gt;https://michalsnik.github.io/aos/&lt;/a&gt;)&lt;/p&gt;




&lt;p&gt;2.&lt;u&gt;&lt;strong&gt;SwiperJS&lt;/strong&gt;&lt;/u&gt; : --&lt;/p&gt;

&lt;p&gt;Swiper is the most modern free and open source mobile touch &lt;br&gt;
 slider with hardware accelerated transitions and amazing native &lt;br&gt;
 behavior. Use it on websites, web apps, and mobile native/hybrid &lt;br&gt;
 apps.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--z1k8Mr6D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qd6pguyetmry54tvmjki.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--z1k8Mr6D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qd6pguyetmry54tvmjki.png" alt="SwiperJS" width="800" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The best part? It's designed to be fast and efficient. So, when &lt;br&gt;
 you slide from one picture or item to the next, it feels super &lt;br&gt;
 smooth and doesn't lag. Plus, it has this cool feature called &lt;br&gt;
 "hardware accelerated transitions," which means the sliding &lt;br&gt;
 animations are extra smooth and quick, giving users a great &lt;br&gt;
 experience.&lt;/p&gt;

&lt;p&gt;Check Out The Tool here :-- (&lt;a href="https://swiperjs.com/"&gt;https://swiperjs.com/&lt;/a&gt;)&lt;/p&gt;




&lt;p&gt;3.&lt;u&gt;&lt;strong&gt;Framer Motion&lt;/strong&gt;&lt;/u&gt; : --&lt;/p&gt;

&lt;p&gt;"Framer Motion" is like a special toolkit for websites built using &lt;br&gt;
 Reactjs, a popular web development framework. Imagine you want &lt;br&gt;
 certain parts of your website, like buttons or images, to move or &lt;br&gt;
 change in a fun way. With Framer Motion, you can do just that &lt;br&gt;
 without a lot of fuss.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--T2l3fEhh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uo89ensq83eov0vzsi5x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--T2l3fEhh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uo89ensq83eov0vzsi5x.png" alt="Framer Motion" width="800" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you're using Reactjs and want to make parts of your site move &lt;br&gt;
 or change in a dynamic way, Framer Motion gives you the creative &lt;br&gt;
 freedom to do just that!&lt;/p&gt;

&lt;p&gt;Check Out The Tool here :-- (&lt;a href="https://www.framer.com/motion/"&gt;https://www.framer.com/motion/&lt;/a&gt;)&lt;/p&gt;




&lt;p&gt;4.&lt;u&gt;&lt;strong&gt;Scroll Magic&lt;/strong&gt;&lt;/u&gt; : --&lt;/p&gt;

&lt;p&gt;"Scroll Magic" is a nifty tool in the world of web design that &lt;br&gt;
 uses JavaScript, a popular coding language, to create some fun &lt;br&gt;
 and captivating effects as people scroll down a webpage. Imagine &lt;br&gt;
 you're scrolling through a site, and suddenly, images start &lt;br&gt;
 moving, text appears in a cool way, or backgrounds change color. &lt;br&gt;
 That's what Scroll Magic helps designers achieve!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DO3vFCdA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4b7562f4osszjf5923k6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DO3vFCdA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4b7562f4osszjf5923k6.png" alt="Scroll Magic" width="800" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In essence, Scroll Magic brings life to your website as users &lt;br&gt;
 scroll through it.&lt;/p&gt;

&lt;p&gt;Check Out The Tool here :-- (&lt;a href="https://scrollmagic.io/"&gt;https://scrollmagic.io/&lt;/a&gt;)&lt;/p&gt;




&lt;p&gt;5.&lt;u&gt;&lt;strong&gt;Particles JS&lt;/strong&gt;&lt;/u&gt; : --&lt;/p&gt;

&lt;p&gt;"Particles JS" is a cool tool that uses JavaScript to sprinkle &lt;br&gt;
 your website with dynamic, moving particles. Think of these &lt;br&gt;
 particles as tiny, animated dots or shapes that float around your &lt;br&gt;
 webpage, adding a touch of dynamism and flair.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2RDmOaGS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yqqyngg88txuqg7k90u5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2RDmOaGS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yqqyngg88txuqg7k90u5.png" alt="Particles JS" width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In simple terms, Particles Js jazzes up your website by turning a &lt;br&gt;
 regular background into a lively canvas of moving particles.&lt;/p&gt;

&lt;p&gt;Check Out The Tool here :-- &lt;br&gt;
            (&lt;a href="https://vincentgarreau.com/particles.js/"&gt;https://vincentgarreau.com/particles.js/&lt;/a&gt;)&lt;/p&gt;




&lt;p&gt;6.&lt;u&gt;&lt;strong&gt;Glide JS&lt;/strong&gt;&lt;/u&gt; : --&lt;/p&gt;

&lt;p&gt;"Glide JS" is a handy tool for websites that helps showcase &lt;br&gt;
 images or content in a sliding format, commonly known as a &lt;br&gt;
 slider or carousel. Imagine a banner on a website where you see &lt;br&gt;
 different pictures slide smoothly from one to the next—that's &lt;br&gt;
 what Glide JS does!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TUHZ06am--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/noeftbdb1hsy5sjnqidv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TUHZ06am--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/noeftbdb1hsy5sjnqidv.png" alt="Glide JS" width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In short, Glide JS is a fast, reliable, and easy-to-use tool for &lt;br&gt;
 adding sleek sliding features to your website without any fuss.&lt;/p&gt;

&lt;p&gt;Check Out The Tool here :-- &lt;a href="https://glidejs.com/"&gt;https://glidejs.com/&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  CONCLUSION
&lt;/h2&gt;

&lt;p&gt;We've looked at some awesome tools like Glide JS and Framer &lt;br&gt;
 Motion that can make your website stand out. Making a website &lt;br&gt;
 that people love is about more than just looks; it's about &lt;br&gt;
 grabbing their attention right away. As we wrap up, remember to &lt;br&gt;
 keep trying new things and making your site better. &lt;br&gt;
 If you want more tips and ideas, &lt;em&gt;follow me&lt;/em&gt;. Let's keep making &lt;br&gt;
 the web a more exciting place together! 🌐🌟&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>frontend</category>
      <category>design</category>
    </item>
    <item>
      <title>Mastering 6 Key Advanced JavaScript Concepts!!</title>
      <dc:creator>Sahil Upadhyay</dc:creator>
      <pubDate>Sun, 17 Dec 2023 12:51:26 +0000</pubDate>
      <link>https://forem.com/big_smoke/mastering-6-key-advanced-javascript-concepts-593o</link>
      <guid>https://forem.com/big_smoke/mastering-6-key-advanced-javascript-concepts-593o</guid>
      <description>&lt;p&gt;Welcome to our JavaScript adventure! 🚀 Get ready to supercharge your coding skills as we dive into the exciting world of mastering 8 Key Advanced JavaScript Concepts! 🌐💡&lt;/p&gt;

&lt;p&gt;Whether you're a coding ninja or just starting your journey, I've got you covered. I'am breaking down complex ideas into bite-sized, easy-to-understand nuggets, using plain English to make sure everyone's in on the fun.&lt;/p&gt;

&lt;p&gt;JavaScript is the wizard behind the curtain of awesome, interactive websites, and we're here to unveil its secrets. &lt;/p&gt;

&lt;p&gt;No boring lectures here – just a ticket to JavaScript mastery! 🎟️✨ By the end of this journey, you'll not only conquer these 8 advanced concepts but also wield them like a coding superhero. Ready to rock? Let's embark on this JavaScript rollercoaster together! 🚀🌟💻&lt;/p&gt;

&lt;p&gt;1.&lt;u&gt;&lt;strong&gt;Inheritance&lt;/strong&gt;&lt;/u&gt;: ---&lt;/p&gt;

&lt;p&gt;In JavaScript, there's something called &lt;em&gt;"inheritance."&lt;/em&gt; &lt;br&gt;
  It's a way for objects to share and reuse properties and &lt;br&gt;
  actions from other objects. Imagine it like passing down &lt;br&gt;
  traits or abilities from one thing to another.&lt;br&gt;
  In this model, each object has an internal link to &lt;br&gt;
  another object called its prototype, forming a chain of &lt;br&gt;
  prototypes.&lt;/p&gt;

&lt;p&gt;Here's a simple example:&lt;/p&gt;

&lt;p&gt;We have two types of creatures: general animals and &lt;br&gt;
  dogs. Dogs are a specific kind of animal, right? So, in &lt;br&gt;
  our code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We create a general "Animal" using a function. This 
animal can say hello with its name.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function Animal(name) {
  this.name = name;
}

Animal.prototype.sayHello = function() {
  console.log("Hello, I am " + this.name);
};

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Now, we want to make a special type of animal: a "Dog." 
Dogs can do everything animals can, but they can also 
bark.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function Dog(name, breed) {
  // This line calls the Animal function to set the name for our dog.
  Animal.call(this, name);
  this.breed = breed;
}

// This line connects the Dog's prototype to the Animal's prototype.
Dog.prototype = Object.create(Animal.prototype);

// Now, we add a new ability: barking.
Dog.prototype.bark = function() {
  console.log("Woof!");
};

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Finally, we create a specific dog named "Buddy" with the 
breed "Labrador" and make it do some actions.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var myDog = new Dog("Buddy", "Labrador");

// Buddy can say hello because he's also an Animal.
myDog.sayHello(); // Outputs: Hello, I am Buddy

// Buddy can bark because he's a Dog.
myDog.bark(); // Outputs: Woof!

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;So, in simple terms, we created a basic animal, then a special type of animal called a dog, and our specific dog Buddy can both say hello like any animal and bark like a dog. This way, we reuse the common abilities of animals and add some specific ones for dogs. That's how inheritance works in JavaScript! 🐾🐶&lt;/p&gt;



&lt;p&gt;2.&lt;u&gt;&lt;strong&gt;Prototype Chaining&lt;/strong&gt;&lt;/u&gt;: ---&lt;/p&gt;

&lt;p&gt;In JavaScript, objects can inherit properties and methods from &lt;br&gt;
  other objects forming a chain of prototypes.&lt;br&gt;
  The prototype chain forms a hierarchy of objects, where each &lt;br&gt;
  object's prototype is linked to its parent object's prototype, &lt;br&gt;
  creating a chain of inheritance.&lt;/p&gt;

&lt;p&gt;In JavaScript, think of objects like characters in a game. Each &lt;br&gt;
  character can have special abilities. Now, some characters want &lt;br&gt;
  to share their cool moves with others. So, they form a chain &lt;br&gt;
  where one character passes down its abilities to another.&lt;br&gt;
  This chain of sharing abilities is what we call "prototypes" in &lt;br&gt;
  JavaScript. It's like a teamwork approach among objects! 🚀🔄&lt;/p&gt;

&lt;p&gt;Here's a simple example:&lt;/p&gt;

&lt;p&gt;Okay, imagine you have different types of vehicles, like &lt;br&gt;
  a general vehicle and a special kind called a car. In &lt;br&gt;
  JavaScript, we can make them share common abilities &lt;br&gt;
  using something called "prototype chaining."&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First, we create a basic vehicle using a function. Every vehicle 
can drive, right?
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function Vehicle(make, model) {
  this.make = make;
  this.model = model;
}

Vehicle.prototype.drive = function() {
  console.log('Vroom!');
};

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Now, let's make a specific type of vehicle – a car. Cars can do 
everything a regular vehicle can, but they can also honk.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function Car(make, model, color) {
  // This line connects the car to the basic vehicle.
  Vehicle.call(this, make, model);
  this.color = color;
}

// This line makes sure that cars can also drive by connecting them to the vehicle's abilities.
Car.prototype = Object.create(Vehicle.prototype);

// Now, we add a new ability: honking.
Car.prototype.honk = function() {
  console.log("Honk!");
};

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Finally, we create a specific car – let's call it 'myCar' – and 
make it do some actions.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var myCar = new Car('Toyota', 'Camry', 'Blue');

// myCar can drive because it's also a vehicle.
myCar.drive(); // Outputs: Vroom!

// myCar can honk because it's a car.
myCar.honk(); // Outputs: Honk!

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;So, in simple terms, we've created a basic vehicle, then a special type of vehicle called a car. The car can do everything a vehicle can, and it also has some special abilities, like honking. This way, we link their abilities through "prototype chaining" in JavaScript. That's how myCar can both drive and honk! 🚗🔗&lt;/p&gt;



&lt;p&gt;3.&lt;u&gt;&lt;strong&gt;Memory Management&lt;/strong&gt;&lt;/u&gt;: ---&lt;/p&gt;

&lt;p&gt;Memory management in JavaScript is like having a magical &lt;br&gt;
  organizer for your computer's workspace. In this digital realm, &lt;br&gt;
  memory serves as a dynamic whiteboard where programs draw and &lt;br&gt;
  erase information. JavaScript employs automatic memory &lt;br&gt;
  management, also known as garbage collection, to ensure this &lt;br&gt;
  virtual whiteboard stays organized.&lt;/p&gt;

&lt;p&gt;The garbage collection cycle, akin to a diligent superhero &lt;br&gt;
  cleaner, involves two phases. First, the "Mark Phase" identifies &lt;br&gt;
  and marks items still in use, akin to circling important &lt;br&gt;
  doodles. Then comes the "Sweep Phase," where the superhero &lt;br&gt;
  removes unmarked items, freeing up space for new tasks.&lt;/p&gt;

&lt;p&gt;Here's a simple example:&lt;/p&gt;

&lt;p&gt;Imagine you have a toy box, and you want to make sure you only &lt;br&gt;
  keep the toys you're actually using.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function createCircularReference() {
  var objA = { data: 'Object A' };
  var objB = { data: 'Object B' };

  // Creating a circular reference
  objA.reference = objB;
  objB.reference = objA;

  // We're done playing with these toys, so we let JavaScript know.
  objA = null;
  objB = null;
}

// After running this, JavaScript knows it can clean up both objA and objB.
createCircularReference();

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So, in simple terms, JavaScript helps you manage your "toy box" (memory) by cleaning up toys (objects) you're not using anymore. It's like having a magical cleanup crew in your computer program! 🧹🚀&lt;/p&gt;




&lt;p&gt;4.&lt;u&gt;&lt;strong&gt;Concurrency Models&lt;/strong&gt;&lt;/u&gt;: ---&lt;/p&gt;

&lt;p&gt;JavaScript's concurrency model is like a skilled chef &lt;br&gt;
  effortlessly handling multiple cooking tasks in a &lt;br&gt;
  bustling kitchen. In the world of code, it's the way &lt;br&gt;
  JavaScript manages and executes tasks simultaneously &lt;br&gt;
  without waiting for one to finish before starting &lt;br&gt;
  another. This approach is crucial for creating &lt;br&gt;
  responsive and efficient programs.&lt;/p&gt;

&lt;p&gt;At the heart of JavaScript's concurrency model is the &lt;br&gt;
  "event loop," a digital timer that keeps track of &lt;br&gt;
  different tasks. This loop enables JavaScript to perform &lt;br&gt;
  background activities while still overseeing the main &lt;br&gt;
  tasks, preventing any one job from blocking everything &lt;br&gt;
  else.&lt;/p&gt;

&lt;p&gt;Here's a simple example:&lt;/p&gt;

&lt;p&gt;Let's say JavaScript has to do a task that takes some &lt;br&gt;
  time, like baking a cake. Instead of waiting for the &lt;br&gt;
  cake to be ready &lt;br&gt;
  before doing anything else, JavaScript can start another &lt;br&gt;
  task, like chopping vegetables, while the cake bakes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function asynchronousTask() {
  console.log('Start task');

  // This line sets a timer for 2 seconds, allowing JavaScript to do other things in the meantime.
  setTimeout(function() {
    console.log('Task completed after 2 seconds');
  }, 2000);

  console.log('Continuing with other tasks');
}

// When you run this, JavaScript starts the task, continues with other things, and prints the completion message after 2 seconds.
asynchronousTask();

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So, in simple terms, JavaScript's concurrency model is like a chef managing many cooking tasks at once. It uses an event loop to handle different jobs without getting stuck, allowing your code to be efficient and responsive. 🍳🔄&lt;/p&gt;




&lt;p&gt;5.&lt;u&gt;&lt;strong&gt;Enumerability&lt;/strong&gt;&lt;/u&gt;: ---&lt;/p&gt;

&lt;p&gt;In JavaScript, enumerability is like deciding which &lt;br&gt;
  items in your treasure chest (object) are visible when &lt;br&gt;
  you show them to others. Imagine your object as a &lt;br&gt;
  collection of treasures, each being a property. &lt;br&gt;
  Enumerability determines whether these properties will &lt;br&gt;
  be revealed in certain operations, especially during &lt;br&gt;
  loops like for_in.&lt;/p&gt;

&lt;p&gt;By default, when you add a property directly to an &lt;br&gt;
  object, it's like putting that treasure on display for &lt;br&gt;
  everyone to see. However, you might have some hidden &lt;br&gt;
  gems you don't want to show off to the world. This is &lt;br&gt;
  where enumerability comes in handy. You can decide which &lt;br&gt;
  properties should be looped over and which ones should &lt;br&gt;
  remain hidden.&lt;/p&gt;

&lt;p&gt;Here's a simple example:&lt;/p&gt;

&lt;p&gt;Let's say you have a person object with properties for &lt;br&gt;
  name and age. The name treasure is on full display, but &lt;br&gt;
  you want to hide the age treasure. So, you make the age &lt;br&gt;
  property "non-enumerable."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var person = { name: "John", age: 30 };

// Making age property non-enumerable
Object.defineProperty(person, "age", { enumerable: false });

// Looping over properties
for (var prop in person) {
  console.log(prop); // Outputs: name
}

// Checking visible properties
console.log(Object.keys(person)); // Outputs: ['name']

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, when you showcase your treasures (loop over properties), only the enumerable ones are revealed. It's like deciding which parts of your collection to share with the world! 📦💎&lt;/p&gt;




&lt;p&gt;6.&lt;u&gt;&lt;strong&gt;OwnerShip&lt;/strong&gt;&lt;/u&gt;: ---&lt;/p&gt;

&lt;p&gt;In JavaScript, property ownership is like figuring out &lt;br&gt;
  whether a characteristic of an object comes from its &lt;br&gt;
  family (prototype chain) or if it's a distinctive &lt;br&gt;
  feature unique to that specific object. Think of it as &lt;br&gt;
  understanding whether your pet inherited certain traits &lt;br&gt;
  from its family or if it has special qualities that make &lt;br&gt;
  it stand out.&lt;br&gt;
  Understanding ownership is crucial when working with &lt;br&gt;
  objects and their prototypes.&lt;/p&gt;

&lt;p&gt;Here's a simple example:&lt;/p&gt;

&lt;p&gt;Imagine you have a pet family called "Animal," and all &lt;br&gt;
  animals have legs, a tail, and a sound. Now, you get a &lt;br&gt;
  specific pet, a cat, from the Animal family. This cat &lt;br&gt;
  inherits legs and tail but makes a unique sound.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function Animal() {
  this.legs = 4;
}
Animal.prototype.tail = true;

var cat = new Animal();
cat.sound = "Meow";

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, when you check which traits your cat has, you use hasOwnProperty to see if each trait is directly from the cat itself or inherited from the family.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(cat.hasOwnProperty("legs")); // Outputs: true
console.log(cat.hasOwnProperty("tail")); // Outputs: false
console.log(cat.hasOwnProperty("sound")); // Outputs: true

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In simple terms, property ownership helps you understand if a trait is a family tradition or something unique to your special pet. It's like knowing whether your pet inherited its fluffy tail or if it's a one-of-a-kind feature! 🐾🏡&lt;/p&gt;




&lt;h2&gt;
  
  
  CONCLUSION
&lt;/h2&gt;

&lt;p&gt;So, as our JavaScript rollercoaster ride comes to an end,&lt;br&gt;
I encourage you to carry this newfound expertise with confidence. &lt;em&gt;Follow me&lt;/em&gt; to keep up with the latest updates and embark on future coding escapades together. Your coding superhero journey has just begun, and there's a world of possibilities ahead. Let's stay connected, keep coding, and explore the endless opportunities that JavaScript has to offer! 🌐💻✨ &lt;em&gt;Follow me&lt;/em&gt; for more coding adventures and let's continue this exciting journey side by side! 🚀👩‍💻🔗&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>"Mastering JavaScript: 8 Easy Shortcuts for Awesome Code!"</title>
      <dc:creator>Sahil Upadhyay</dc:creator>
      <pubDate>Fri, 15 Dec 2023 17:04:30 +0000</pubDate>
      <link>https://forem.com/big_smoke/mastering-javascript-8-easy-shortcuts-for-awesome-code-3m8j</link>
      <guid>https://forem.com/big_smoke/mastering-javascript-8-easy-shortcuts-for-awesome-code-3m8j</guid>
      <description>&lt;p&gt;Hey there,👋 coding pals! Ever felt like there's gotta be a quicker way to write JavaScript? Well, you're in for a treat! Today, we're talking about cool JavaScript shortcuts – like secret codes that make your web code way snazzier.&lt;/p&gt;

&lt;p&gt;Imagine you're a coding superhero,🦸‍♂️ and these shortcuts are your special powers. They're like magic spells that help you write less and do more. Plus, they make your code look super pro. Some of you may be aware of these shortcuts but for others this could be relatively new.&lt;/p&gt;

&lt;p&gt;So, buckle up, because we're about to explore eight awesome JavaScript shortcuts that will turn you into a coding wizard. Let's dive in and make your code-writing journey a whole lot smoother! 🚀&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;Declaring Variable&lt;/strong&gt;&lt;/u&gt;:--&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Long Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Imagine you're telling a story in detail. In &lt;br&gt;
JavaScript, longhand is like that detailed &lt;br&gt;
storytelling. For example:&lt;br&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let x;  // You're saying, "Hey, I want a variable named x."
let y;  // And here, you're saying, "Give me another variable, and I'll call it y."
let z = "a";  // Finally, you're setting a variable z and giving it the value "a".

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Short Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Now, think of shorthand as the shortcut or summary of &lt;br&gt;
   that story. Instead of saying it all step by step, you &lt;br&gt;
   express it in a compact way:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; let x, y, z="a";  // Boom! You're telling the whole story 
 in one sentence. "I want variables x and y, and 
 z is 'a'."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;2.&lt;u&gt;&lt;strong&gt;Ternary Operator&lt;/strong&gt;&lt;/u&gt;:--&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Long Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Imagine you have a friend named "x," and you want to &lt;br&gt;
   decide if x is greater than 9. If it is, you want to &lt;br&gt;
   say "true"; if not, you want to say "false." In &lt;br&gt;
   longhand, it's like having a conversation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let number;  // Imagine you have a box named "number."
if (x &amp;gt; 9) {
  number = true;  // If your friend x is greater than 9, you put "true" in the box.
} else {
  number = false;  // If not, you put "false" in the box.
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Short Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Now, let's use a quick, shortcut way to express the same thing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 let number = x ≥ 9 ? true : false;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;3.&lt;u&gt;&lt;strong&gt;Assignment Operator&lt;/strong&gt;&lt;/u&gt;:--&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Long Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Think of it like counting candy. You have a bag of &lt;br&gt;
   candy represented by a variable "x," and you want to &lt;br&gt;
   add more candy ("y") to it. The longhand way is like &lt;br&gt;
   saying:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x = x + y;  // Take the current candies in the bag, add more candies, and put the total back in the bag.
x = x-y;     // Take the current candies in the bag, subtract candies, and put the remaining back in the bag..

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Short Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Now, the shorthand way is like finding a quicker way to express the same idea:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x += y;  // It's like saying "Add these candies to the bag and keep them there."
x -= y;   // It's like saying "Subtract these candies from the bag and keep the remaining there."

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;4.&lt;u&gt;&lt;strong&gt;Switch Case&lt;/strong&gt;&lt;/u&gt;:--&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Long Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Imagine you have a remote control, and there are &lt;br&gt;
   different buttons on it. Each button does a specific &lt;br&gt;
   thing when you press it. In longhand, using a switch &lt;br&gt;
   statement is like checking which button you pressed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;switch (something) {
  case 1:
    doSomething();      // If you pressed button 1, do something.
    break;
  case 2:
    doSomethingElse();  // If you pressed button 2, do something else.
    break;
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Short Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Now, let's imagine a magical drawer where you have &lt;br&gt;
   different objects, and each object represents an &lt;br&gt;
   action. The shorthand version is like having a drawer &lt;br&gt;
   full of actions and simply grabbing the right action &lt;br&gt;
   based on the value of 'something':&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var cases = {
  1: doSomething,      // If 'something' is 1, grab the 'doSomething' action.
  2: doSomethingElse   // If 'something' is 2, grab the 'doSomethingElse' action.
};

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The shorthand uses an object as a lookup table, making it a neat and efficient way to handle different cases without the need for repetitive case statements.&lt;/p&gt;




&lt;p&gt;5.&lt;u&gt;&lt;strong&gt;If Presence&lt;/strong&gt;&lt;/u&gt;:--&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Long Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Imagine you have a light switch, and you want to check &lt;br&gt;
   if the light is turned on. In longhand JavaScript, it's &lt;br&gt;
   like saying:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
if (boolGoesHere === true) {
  // If the light is truly on, do something.
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Short Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Now, let's use a more straightforward way to express &lt;br&gt;
  the same idea:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (boolGoesHere) {
  // If the light is on, do something.
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, it's like saying, "If the light is on, do something." The shorthand version takes advantage of the fact that if boolGoesHere is already true, you don't need to explicitly compare it to true. It's like checking if the light is on without asking, "Is it truly on?"&lt;/p&gt;




&lt;p&gt;6.&lt;u&gt;&lt;strong&gt;Arrow Functions&lt;/strong&gt;&lt;/u&gt;:--&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Long Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Imagine you have a friend, and you want to greet them &lt;br&gt;
   in a traditional way. In longhand JavaScript, defining &lt;br&gt;
   a function is like saying:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
function sayHello(name) {
  console.log('Hello', name);
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's a bit like saying, "Okay, let's create a way to say hello to a friend. When I call this 'sayHello' function and give it a 'name,' it will print 'Hello, name.'"&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Short Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Now, let's imagine you found a quicker, more modern way &lt;br&gt;
   to greet your friend:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sayHello = name =&amp;gt; console.log('Hello', name);

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The shorthand version is a more concise way to define a simple function. It's like using a quicker, more efficient method to achieve the same result. &lt;/p&gt;




&lt;p&gt;7.&lt;u&gt;&lt;strong&gt;charAt()&lt;/strong&gt;&lt;/u&gt;:--&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Long Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Imagine you have a book, and you want to know the first &lt;br&gt;
   letter on the first page. In longhand JavaScript, using &lt;br&gt;
   the charAt() method is like saying:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
"myString".charAt(0);


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Short Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Now, let's imagine you found a quicker way to grab that first &lt;br&gt;
   letter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"myString"[0];

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's like saying, "I know there's a first letter in this string &lt;br&gt;
   'myString.' I'll just grab it directly using [0]." &lt;/p&gt;

&lt;p&gt;8.&lt;u&gt;&lt;strong&gt;Object Array Notation&lt;/strong&gt;&lt;/u&gt;:--&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Long Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Imagine you have a backpack, and you want to put three &lt;br&gt;
   different things in it, labeling each item with a &lt;br&gt;
   number. In longhand JavaScript, it's like saying:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
let a = new Array();
a[0] = "myString1";
a[1] = "myString2";
a[2] = "myString3";

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's a bit like saying, "I have a backpack called 'a.' In the first slot (index 0), I'm putting 'myString1.' In the second slot (index 1), I'm putting 'myString2.' And in the third slot (index 2), I'm putting 'myString3.'"&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Short Hand Technique&lt;/em&gt; :&lt;/p&gt;

&lt;p&gt;Now, let's imagine you found a quicker way to pack your &lt;br&gt;
   backpack:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let a = ["myString1", "myString2", "myString3"];

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's like saying, "I have a backpack called 'a,' and I'm putting 'myString1' in the first slot, 'myString2' in the second slot, and 'myString3' in the third slot."&lt;/p&gt;

&lt;p&gt;The shorthand version is a more concise way to create an array with values.&lt;/p&gt;




&lt;h2&gt;
  
  
  CONCLUSION
&lt;/h2&gt;

&lt;p&gt;Congratulations, fellow coders! You've just unlocked the secret codes that can transform your JavaScript game from good to superhero-level greatness. With these eight awesome shortcuts, you're now equipped with the magical spells to write more efficient and professional-looking code.&lt;/p&gt;

&lt;p&gt;Remember, coding is not just about making things work; it's about doing it with style and elegance. These JavaScript shortcuts are your secret weapons to achieve just that – elegant, concise, and powerful code that makes you stand out in the coding realm.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Follow Me for More:&lt;/em&gt;&lt;br&gt;
If you enjoyed this journey through JavaScript shortcuts and want more coding magic in your life, follow me for future posts! Together, we'll uncover more secrets, explore new tricks, and level up our coding skills. Stay tuned for more coding adventures, and let's continue this exciting journey of becoming coding wizards! 🌟👩‍💻👨‍💻&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>8 HIDDEN WEBSITES FOR PROGRAMMERS !!</title>
      <dc:creator>Sahil Upadhyay</dc:creator>
      <pubDate>Fri, 01 Dec 2023 14:22:43 +0000</pubDate>
      <link>https://forem.com/big_smoke/8-hidden-websites-for-programmers--1ioi</link>
      <guid>https://forem.com/big_smoke/8-hidden-websites-for-programmers--1ioi</guid>
      <description>&lt;p&gt;Welcome to the hidden side of the internet, where programmers find treasures in the form of secret websites. Imagine a digital adventure where codes have secrets, and algorithms play hide and seek. Today, we're going on a journey to reveal the mystery behind the scenes. Get ready as we uncover &lt;em&gt;8 websites&lt;/em&gt; that hold the key to a programmer's success. It's like opening a digital treasure chest filled with coding gems. Even though some might have discovered these but for others get ready to explore the secret side of programming. Let's dive in and unlock the mysteries together!&lt;/p&gt;

&lt;p&gt;1.&lt;strong&gt;&lt;u&gt;DEVDOCS.IO&lt;/u&gt;&lt;/strong&gt;: --     &lt;a href="https://devdocs.io/" rel="noopener noreferrer"&gt;DevDocs.IO&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DevDocs brings together numerous API documentation in &lt;br&gt;
   a single, searchable interface. You will find docs &lt;br&gt;
   related to various programming languages and &lt;br&gt;
   technologies👨‍💻 in one place.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5lav5oi2li6exus2kpkx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5lav5oi2li6exus2kpkx.png" alt="Dev-Docs"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;2.&lt;strong&gt;&lt;u&gt;CSS-TRICKS.COM&lt;/u&gt;&lt;/strong&gt;: --     &lt;a href="https://css-tricks.com/" rel="noopener noreferrer"&gt;Css-Tricks.COM&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Enhance your web development proficiency by acquiring a &lt;br&gt;
  comprehensive understanding of CSS through this website.👍 &lt;br&gt;
  In case you weren't aware, CSS is the element &lt;br&gt;
  responsible for rendering web pages visually appealing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxnuh09mri2ns1n2famfh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxnuh09mri2ns1n2famfh.png" alt="Css-Tricks"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;3.&lt;strong&gt;&lt;u&gt;OVERAPI.COM&lt;/u&gt;&lt;/strong&gt;: --     &lt;a href="https://overapi.com/" rel="noopener noreferrer"&gt;OverApi.COM&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For developers, OverAPI stands out as one of the most valuable &lt;br&gt;
  and aesthetically pleasing websites. It hosts cheat sheets for a &lt;br&gt;
  wide array of programming languages. Take a moment to explore it &lt;br&gt;
  now. 🚀&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhgdeppj48wezf9kgqf1b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhgdeppj48wezf9kgqf1b.png" alt="Over-Api"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;4.&lt;strong&gt;&lt;u&gt;RAY.SO&lt;/u&gt;&lt;/strong&gt;: --     &lt;a href="https://ray.so/" rel="noopener noreferrer"&gt;Ray.So&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This website allows you to take beautiful screenshots📸 of &lt;br&gt;
  codes. It also has a dark mode and some preloaded themes &lt;br&gt;
  for different programming languages. You can also use &lt;br&gt;
  its VS Code extension.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ygxmsocmlns95uidwjn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ygxmsocmlns95uidwjn.png" alt="Ray.So"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;5.&lt;strong&gt;&lt;u&gt;DAILY.DEV&lt;/u&gt;&lt;/strong&gt;: --     &lt;a href="https://daily.dev/" rel="noopener noreferrer"&gt;Daily.Dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is a platform where you can find so many good &lt;br&gt;
  articles to read daily. It shows the best articles from &lt;br&gt;
  various platforms directly in your feed.📚 Check it out!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj218fihvczeek1ksw159.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj218fihvczeek1ksw159.png" alt="DailyDev"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;6.&lt;strong&gt;&lt;u&gt;CODEBEAUTIFY.ORG&lt;/u&gt;&lt;/strong&gt;: --     &lt;a href="https://codebeautify.org/" rel="noopener noreferrer"&gt;CodeBeautify.Org&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Make your source code more beautiful and easy to read &lt;br&gt;
  using codeBeautify. Its Al technology will make your &lt;br&gt;
  source code more attractive🌟 and easy to read.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F94i3gbjzsudujdhno3qd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F94i3gbjzsudujdhno3qd.png" alt="Code-Beautify"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;7.&lt;strong&gt;&lt;u&gt;SHOWWCASE.COM&lt;/u&gt;&lt;/strong&gt;: --     &lt;a href="https://www.showwcase.com/" rel="noopener noreferrer"&gt;ShowwCase.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Showwcase is a new social media 📱 website specially for &lt;br&gt;
  people who code connect, build community, and find new &lt;br&gt;
  opportunities. It is a Linkedin like platform but only &lt;br&gt;
  focused on developers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdtxfwmgo3b3n61astltv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdtxfwmgo3b3n61astltv.png" alt="Showw Case"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;8.&lt;strong&gt;&lt;u&gt;ROADMAP.SH&lt;/u&gt;&lt;/strong&gt;: --     &lt;a href="https://roadmap.sh/" rel="noopener noreferrer"&gt;RoadMap.sh&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This website provides roadmaps, guidelines, and other &lt;br&gt;
  educational content to assist developers in choosing a &lt;br&gt;
  path and directing their learning. It is very helpful &lt;br&gt;
  for a beginner as well as a learner who needs guidance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr7znz1brniaq6ri3rb6y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr7znz1brniaq6ri3rb6y.png" alt="RoadMap.sh"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  CONCLUSION
&lt;/h2&gt;

&lt;p&gt;That wraps up our journey into the hidden world of programming! We've explored secret websites, uncovered coding gems, and delved into the mysteries of algorithms. It's been an exciting adventure!&lt;/p&gt;

&lt;p&gt;For more cool programming stuff, &lt;em&gt;follow me&lt;/em&gt;. Let's continue unlocking coding secrets together! 🚀 #CodeDiscoveries&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>10 ADVANCED JAVASCRIPT TRICKS YOU SHOULD KNOW !!</title>
      <dc:creator>Sahil Upadhyay</dc:creator>
      <pubDate>Mon, 27 Nov 2023 18:18:26 +0000</pubDate>
      <link>https://forem.com/big_smoke/10-advanced-javascript-tricks-you-should-know--1ofj</link>
      <guid>https://forem.com/big_smoke/10-advanced-javascript-tricks-you-should-know--1ofj</guid>
      <description>&lt;p&gt;Welcome to the wonderful world of JavaScript, where coding meets enchantment! If you’ve ever felt the thrill of creating content on the web but wondered about the hidden strategies behind it, then you’re at the right place.✨🚀&lt;/p&gt;

&lt;p&gt;In this blog, we journey through the realm of JavaScript, demystify the complex and embrace the simple. No confusing terminology – just plain English explanations and step-by-step instructions. Whether you're a coding newbie or a seasoned developer, join us as we discover 10 advanced JavaScript tips that will get you going &lt;em&gt;"Aha!"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;1.&lt;u&gt;&lt;strong&gt;DESTRUCTURING ASSIGNMENT&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;Assignment destructuring is a concise way to extract &lt;br&gt;
   values from arrays or objects and assign them to &lt;br&gt;
   variables.&lt;br&gt;
   It simplifies your code and improves readability. For &lt;br&gt;
   arrays, you can use bracket notation, and you can use &lt;br&gt;
   braces for objects.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fat1hxowbpsxzgi2gln6j.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fat1hxowbpsxzgi2gln6j.jpeg" alt="DESTRUCTRUING"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;2.&lt;u&gt;&lt;strong&gt;SPREAD SYNTAX&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;You can use the spread syntax to extend the elements of &lt;br&gt;
   an array or the properties of an object into another &lt;br&gt;
   array or object.&lt;br&gt;
   This is useful for making copies, merging objects, and &lt;br&gt;
   passing multiple arguments to functions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuoqllndthqgr0n931thc.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuoqllndthqgr0n931thc.jpeg" alt="Spread Syntax"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;3.&lt;u&gt;&lt;strong&gt;CURRYING&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;Currying is a functional programming technique in which &lt;br&gt;
   a function that takes multiple arguments is transformed &lt;br&gt;
   into a sequence of functions, each taking a single &lt;br&gt;
   argument.&lt;br&gt;
   This allows for better reuse and composition of the &lt;br&gt;
   code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fisp1ssqnxde6uvodqr9j.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fisp1ssqnxde6uvodqr9j.jpeg" alt="Currying"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;4.&lt;u&gt;&lt;strong&gt;MEMOIZATION&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;It's a caching technique used to store the results of &lt;br&gt;
   expensive function calls and avoid unnecessary &lt;br&gt;
   recalculations.&lt;br&gt;
   It can significantly slow the performance of long-term &lt;br&gt;
   recursive or consuming functions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxw1jdu75vkjev3kw8osy.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxw1jdu75vkjev3kw8osy.jpeg" alt="Memoization"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;5.&lt;u&gt;&lt;strong&gt;PROMISES AND ASYNC/AWAIT&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;Promises and Async/Await are essential to handle &lt;br&gt;
   asynchronous operations more gracefully and make code &lt;br&gt;
   more readable and maintainable.&lt;br&gt;
   They help avoid callbacks hellish and improve error &lt;br&gt;
   handling.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foq6276u1rilbozbfpo4u.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foq6276u1rilbozbfpo4u.jpeg" alt="Promises-Async/Await"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;6.&lt;u&gt;&lt;strong&gt;CLOSURES&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;Closures are functions that remember the environment in &lt;br&gt;
   which they were created, even if that environment is no &lt;br&gt;
   longer accessible.&lt;br&gt;
   They are useful for creating private variables and for &lt;br&gt;
   behavior encapsulation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiy1zkeqx9ta5gqormq0p.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiy1zkeqx9ta5gqormq0p.jpeg" alt="Closures"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;7.&lt;u&gt;&lt;strong&gt;FUNCTION COMPOSITION&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;Function composition is the process of combining two or &lt;br&gt;
   more functions to create a new function.&lt;br&gt;
   It encourages code reuse and helps create &lt;br&gt;
   transformations complex step by step.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6g9kzxezkemutb1zvuvd.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6g9kzxezkemutb1zvuvd.jpeg" alt="Function-Composition"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;8.&lt;u&gt;&lt;strong&gt;PROXY&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;The proxy object allows you to create custom behavior &lt;br&gt;
   for basic object operations. It allows you to intercept &lt;br&gt;
   and modify object operations. 'object, such as &lt;br&gt;
   accessing properties, assigning, and calling methods.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fje32r9eu2y3wf5rrm50b.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fje32r9eu2y3wf5rrm50b.jpeg" alt="Proxy"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;9.&lt;u&gt;&lt;strong&gt;EVENT DELEGATION&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;Event delegation is a technique in which you attach a &lt;br&gt;
   single event listener to a parent rather than multiple &lt;br&gt;
   listeners to each child. memory usage and improves &lt;br&gt;
   performance, especially for large lists or dynamically &lt;br&gt;
   generated content.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Far60xpbcri5931giv2ze.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Far60xpbcri5931giv2ze.jpeg" alt="Event-Delegation"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;10.&lt;u&gt;&lt;strong&gt;WEB WORKERS&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;Web Workers allow you to run JavaScript code in the &lt;br&gt;
   background, alongside the main thread.&lt;br&gt;
   They are useful for offloading CPU- intensive tasks, &lt;br&gt;
   Avoid UI hangs and improve performance Responsiveness.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc965v7g8kgh9y1rpp528.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc965v7g8kgh9y1rpp528.jpeg" alt="Web-Workers"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  CONCLUSION
&lt;/h2&gt;

&lt;p&gt;And there you have it, fellow legal researchers!😊 Together, we traversed the JavaScript galaxy, revealing 10 techniques that seemed magical at first. But now, armed with a sprinkling of understanding and enthusiasm, you’re ready to apply these coding mantras with confidence.&lt;/p&gt;

&lt;p&gt;If you enjoyed this magical tour, don't forget to hit the &lt;em&gt;follow button&lt;/em&gt; for more coding adventures. And, of course, your comments are the secret sauce that keeps this community thriving. Share your thoughts, questions, or your own JavaScript tricks below. Let's keep the conversation alive!&lt;/p&gt;

&lt;p&gt;Thank you for joining this adventure. Until next time, happy coding! 🚀💻✨&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>community</category>
      <category>webdev</category>
    </item>
    <item>
      <title>6 TOP JAVASCRIPT TRICKS FOR CLEANER CODE</title>
      <dc:creator>Sahil Upadhyay</dc:creator>
      <pubDate>Sat, 25 Nov 2023 02:34:53 +0000</pubDate>
      <link>https://forem.com/big_smoke/6-top-javascript-tricks-for-cleaner-code-1mck</link>
      <guid>https://forem.com/big_smoke/6-top-javascript-tricks-for-cleaner-code-1mck</guid>
      <description>&lt;p&gt;Welcome, fellow coders! Today, we're unlocking the door to JavaScript brilliance. Imagine a world where your code isn't just practical, however a masterpiece of beauty and ease. 🚀&lt;/p&gt;

&lt;p&gt;In this quick dive into the artwork of clean JavaScript, we will unleash a handful of tricks so one can rework their code from chaotic to captivating. Think of them as your code's fairy godmothers, prepared to sprinkle a hint of magic for cleaner, extra green scripts.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;USE OBJECT DESTRUCTURING&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;Object destructuring allows you to extract data &lt;br&gt;
  from objects into distinct variables. This can &lt;br&gt;
  make your code cleaner by avoiding repetitively &lt;br&gt;
  using dot notation.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kM9KFlfK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1ftb1l6n3bg105mzy9fd.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kM9KFlfK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1ftb1l6n3bg105mzy9fd.jpeg" alt="Object-destructuring" width="408" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.&lt;u&gt;&lt;strong&gt;USE DEFAULT PARAMETERS&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;Default parameters allow you to set default values &lt;br&gt;
   for function parameters if none are provided. This &lt;br&gt;
   avoids repeating yourself by redefining values &lt;br&gt;
   every time. Setting Default values makes function &lt;br&gt;
   more flexible to use.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dEmdVX3K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fkqlj43b4rnzql334coz.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dEmdVX3K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fkqlj43b4rnzql334coz.jpeg" alt="Object-Paramter" width="465" height="296"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.&lt;u&gt;&lt;strong&gt;USE LET &amp;amp; CONST&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;Using let and const avoids unintended behavior &lt;br&gt;
   from var. They make sure variables are block- &lt;br&gt;
   scoped and constants can't be reassigned.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vRxe-6HL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9y68t5e7phporz3t2uqh.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vRxe-6HL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9y68t5e7phporz3t2uqh.jpg" alt="Let-Const" width="616" height="191"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.&lt;u&gt;&lt;strong&gt;USE ARRAY METHODS&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;JavaScript has handy array methods to help us write &lt;br&gt;
   cleaner code. Things like map(), filter(), find(), &lt;br&gt;
   reduce() etc. can avoid lots of loops and make code &lt;br&gt;
   more expressive.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bqVq-LFb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nbr674m99kandz5l2ob1.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bqVq-LFb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nbr674m99kandz5l2ob1.jpg" alt="ARRAY-METHOD" width="560" height="265"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.&lt;u&gt;&lt;strong&gt;USE OBJECT METHODS&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;JavaScript gives objects built-in methods like &lt;br&gt;
   Object.keys(), Object.values(), JSON.stringify() etc. &lt;br&gt;
   Using these avoids reimplementing repetitive tasks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rWcgf1Zd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iytyqhptdc6gfxvj1vzb.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rWcgf1Zd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iytyqhptdc6gfxvj1vzb.jpg" alt="OBJECT-METHODS" width="514" height="260"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.&lt;u&gt;&lt;strong&gt;REST/SPREAD PROPERTIES&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;The rest/spread syntax allows us to handle function &lt;br&gt;
   parameters and array elements in flexible ways.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Q7I-c8JD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oaa1nu0ixx0i2j5wlnb7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Q7I-c8JD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oaa1nu0ixx0i2j5wlnb7.jpg" alt="Rest/Spread" width="593" height="320"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  CONCLUSION
&lt;/h2&gt;

&lt;p&gt;And there you have it, a sneak peek into the world of cleaner JavaScript code. Armed with these tricks, you're now equipped to make your code not just work, but work elegantly. Embrace simplicity, write with clarity, and let these tips be your guide to smoother coding adventures.&lt;/p&gt;

&lt;p&gt;Happy coding, and may your projects be bug-free! 🚀&lt;/p&gt;

&lt;p&gt;P.S. Don't forget to hit that &lt;em&gt;follow button&lt;/em&gt; for more coding wisdom. Until next time! 👋😊&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>tutorial</category>
      <category>programming</category>
      <category>learning</category>
    </item>
    <item>
      <title>4 MAIN JAVASCRIPT Object Methods That Every Developer Should Know</title>
      <dc:creator>Sahil Upadhyay</dc:creator>
      <pubDate>Sat, 18 Nov 2023 04:08:15 +0000</pubDate>
      <link>https://forem.com/big_smoke/4-main-javascript-object-methods-that-every-developer-should-know-4pdg</link>
      <guid>https://forem.com/big_smoke/4-main-javascript-object-methods-that-every-developer-should-know-4pdg</guid>
      <description>&lt;p&gt;Welcome to the world of JavaScript, where coding is like creating a beautiful piece of music. In this blog, we're going to explore 4 main JavaScript Object Method that come handy most of the time in our programming world of Objects in JavaScript..&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;Object.keys(obj_refrence)&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Object.keys() returns an array of given object's property &lt;br&gt;
names.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In JavaScript, objects can store information in key-value &lt;br&gt;
pairs, like a dictionary. Now, imagine you have an object with &lt;br&gt;
a bunch of keys (names) and values (associated information).&lt;/p&gt;

&lt;p&gt;Object.keys() is like a tool that helps you get only the keys &lt;br&gt;
from that object. It's saying, "Give me a list of all the &lt;br&gt;
names (keys) in this object."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here's a simple example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;     const obj = { a: 1, b: 2, c: 3 };
     console.log(Object.keys(obj));
     // Output: ["a", "b", "c"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;Object.values(obj_refrence)&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Object.values() returns an array of given object's value.&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;Here, we will try to access the value of the object instead of &lt;br&gt;
name just like above.&lt;/p&gt;

&lt;p&gt;Object.values() is like a tool that helps you get only the &lt;br&gt;
values from that object. It's saying, "Give me a list of all &lt;br&gt;
the values (associated information) in this object."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here's a simple example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;     const obj = { a: 1, b: 2, c: 3 };
     console.log(Object.values(obj));
     // Output: [1,2,3]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;Object.entries(obj_refrence)&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Object.entries() returns an array of key-value pairs.&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;Imagine you have an object, and it's like a treasure chest &lt;br&gt;
with many items inside. Each item has a key (name) and some &lt;br&gt;
value (associated information).&lt;/p&gt;

&lt;p&gt;Now, Object.entries() is a special tool that helps you see &lt;br&gt;
both the names and the association of each item in the chest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here's a simple example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;     let treasureChest = {
       goldCoins: 50,
       silverBars: 20,
       preciousGems: ['diamond', 'sapphire', 'ruby']
     };

     console.log(Object.entries(treasureChest));

     //OUTPUT:  [['goldCoins', 50],['silverBars', 20],
                ['preciousGems', ['diamond', 'sapphire', 'ruby']]]

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;Object.assign(target_object,src_1,....,src_n)&lt;/strong&gt;&lt;/u&gt; :--&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Object.assign() Copies key-value pair from one or more source &lt;br&gt;
objects to target objects.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It helps you create a new object by combining the properties &lt;br&gt;
of one or more existing objects. It's useful when you want to &lt;br&gt;
merge information from different sources into a single, &lt;br&gt;
consolidated object in your JavaScript code.&lt;/p&gt;

&lt;p&gt;Imagine you have two containers, one with items (target) and &lt;br&gt;
another with more items (source). Object.assign() is like a &lt;br&gt;
helper that takes items from the second container (source) and &lt;br&gt;
adds them to the first container (target), creating a new, &lt;br&gt;
bigger container (result).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here's a simple example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;      const target = { a: 1, b: 2 };
      const source = { c: 4, d: 5 };
      const result = Object.assign(target, source);
      console.log(result);
      // Output: { a: 1, b: 2, c: 4, d: 5 }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  SUMMARY
&lt;/h2&gt;

&lt;p&gt;And there you have got it—our journey via JavaScript's magical toolbox! &lt;/p&gt;

&lt;p&gt;We've met four pleasant helpers: one that suggests us names (Object.Keys), any other that sings us values (Object.Values), a treasure hunter revealing both names and values (Object.Entries), and a master mixer developing a new blend of objects (Object.Assign).&lt;/p&gt;

&lt;p&gt;As we wrap up, remember, coding is an ongoing adventure. &lt;em&gt;Follow me&lt;/em&gt; for more discoveries, and share your thoughts below. Let's keep the coding conversation alive! 🚀🎉&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
