<?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>DEV Community: Himanshu Tiwari 🌼</title>
    <description>The latest articles on DEV Community by Himanshu Tiwari 🌼 (@himanshutiwari15).</description>
    <link>https://dev.to/himanshutiwari15</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%2F477160%2F8917b7f2-2437-4bb8-92fb-185025e38b40.jpg</url>
      <title>DEV Community: Himanshu Tiwari 🌼</title>
      <link>https://dev.to/himanshutiwari15</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/himanshutiwari15"/>
    <language>en</language>
    <item>
      <title>Resources for Design Inspiration</title>
      <dc:creator>Himanshu Tiwari 🌼</dc:creator>
      <pubDate>Thu, 18 Mar 2021 20:32:04 +0000</pubDate>
      <link>https://dev.to/himanshutiwari15/resources-for-design-inspiration-557h</link>
      <guid>https://dev.to/himanshutiwari15/resources-for-design-inspiration-557h</guid>
      <description>&lt;p&gt;Here are some websites to get inspiration for design and UI.&lt;br&gt;
You can use them in your next project for Design Inspiration -&amp;gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.behance.net/" rel="noopener noreferrer"&gt;BEHANCE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dribbble.com/" rel="noopener noreferrer"&gt;DRIBBLE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dribbble.com/" rel="noopener noreferrer"&gt;DRIBBLE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://screenlane.com/" rel="noopener noreferrer"&gt;SCREENLANE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.lapa.ninja/" rel="noopener noreferrer"&gt;LAPA NINJA UI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://webframe.xyz/" rel="noopener noreferrer"&gt;WEBFRAME&lt;/a&gt; OR &lt;a href="https://collectui.com/designs" rel="noopener noreferrer"&gt;COLLECT-UI&lt;/a&gt; OR &lt;a href="https://www.calltoidea.com/" rel="noopener noreferrer"&gt;CALLTOIDEA&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://mediaqueri.es/" rel="noopener noreferrer"&gt;MEDIA QUERIES&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://search.muz.li/" rel="noopener noreferrer"&gt;SEARCH-MUZ-LI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://uigarage.net/" rel="noopener noreferrer"&gt;UI-GARAGE&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  BONUS
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.frontendmentor.io/" rel="noopener noreferrer"&gt;Practice frontend on real-life projects&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tympanus.net/codrops/" rel="noopener noreferrer"&gt;Practice CSS and get reference of syntax&lt;/a&gt;&lt;/li&gt;
&lt;/ol&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%2F8y7tlcr5qk38x8bdd3xg.gif" 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%2F8y7tlcr5qk38x8bdd3xg.gif" alt="DESIGN LIFE SAVER"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Comment down your fav one
&lt;/h4&gt;

</description>
      <category>design</category>
      <category>uiweekly</category>
      <category>webdev</category>
      <category>devops</category>
    </item>
    <item>
      <title>THINGS TO REMEMBER WHILE CREATING YOUR PORTFOLIO WEBSITE</title>
      <dc:creator>Himanshu Tiwari 🌼</dc:creator>
      <pubDate>Sat, 13 Feb 2021 08:55:04 +0000</pubDate>
      <link>https://dev.to/himanshutiwari15/things-to-remember-while-creating-your-portfolio-website-3f8p</link>
      <guid>https://dev.to/himanshutiwari15/things-to-remember-while-creating-your-portfolio-website-3f8p</guid>
      <description>&lt;p&gt;A Portfolio website is your reflection, your way to show off projects and skills. Currently, I am also trying to make my own portfolio website and thought to share these things which are important for a portfolio website to have.&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%2Fclipchamp.com%2Fstatic%2F88bb8fc56d817b40f1772ad4e615eaae%2FSimpson-GIF.gif" 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%2Fclipchamp.com%2Fstatic%2F88bb8fc56d817b40f1772ad4e615eaae%2FSimpson-GIF.gif" alt="image-gif"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1- Home Page: Makes or Breaks
&lt;/h2&gt;

&lt;p&gt;Your complete website should be of absolutely high quality but the home page decides whether the client or visitor will see the whole website or not.&lt;br&gt;
Your Home Page should reflect who you are? what do you do? Also, what are your best projects? Here's a screenshot from &lt;a href="https://ramses.work/" rel="noopener noreferrer"&gt;this&lt;/a&gt; website.&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%2Fi%2Fifrtttegsiskmgf38ah0.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%2Fi%2Fifrtttegsiskmgf38ah0.png" alt="home page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2- Second Most Visited Page: About Page
&lt;/h2&gt;

&lt;p&gt;Your About Page is the second most visited page after your Home Page. This page should be all about you, from name to location or your story. Don't forget to mention work and your qualities. Try to give a story to your visitor or a fun fact about yourself. &lt;/p&gt;

&lt;p&gt;You have to be creative and professional both at the same time. Here's an &lt;a href="https://www.alex.mn/about" rel="noopener noreferrer"&gt;example&lt;/a&gt;&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%2Fi%2Fmhyik0r7nd9myp0u7rny.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%2Fi%2Fmhyik0r7nd9myp0u7rny.png" alt="about page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3- No one likes you?
&lt;/h2&gt;

&lt;p&gt;People like you, your work, and your projects? If yes, then &lt;code&gt;add testimonials&lt;/code&gt; because they give social proof of how good you are at your work.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;They add legitimacy to your portfolio website and reinforce your worth in the eyes of visitors. Recommendations from real people can offer an important nudge for potential clients to get in touch.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Here's a &lt;a href="https://bratsun.com/#testimonials" rel="noopener noreferrer"&gt;reference&lt;/a&gt;&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%2Fi%2Fav5xqsyyy4xx26z17iyq.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%2Fi%2Fav5xqsyyy4xx26z17iyq.png" alt="testimonial page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4- Navigation -&amp;gt; Seamless
&lt;/h2&gt;

&lt;p&gt;The most simplistic thing is navigation. You can make it creative but don't add so many options to it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you have too many pages on your site or a layout that’s confusing for first-time visitors, people will be focused on that, when you want them to be focused on the quality of your creative work.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="http://riccardozanutta.com/" rel="noopener noreferrer"&gt;Example&lt;/a&gt;&lt;br&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%2Fi%2Fnle512oy2dl19fjydvmi.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%2Fi%2Fnle512oy2dl19fjydvmi.png" alt="navigation page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  5- Use your Creative Skills
&lt;/h2&gt;

&lt;p&gt;If you have creative skills then why not show them? Make your website minimalistic and on a theme that reflects your interest.&lt;br&gt;
Look at this &lt;a href="https://saurabhdaware.in/" rel="noopener noreferrer"&gt;example&lt;/a&gt;&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%2Fi%2Fwuxikhsuh1vdnkw81p1e.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%2Fi%2Fwuxikhsuh1vdnkw81p1e.png" alt="minimalistic"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  6- Last but not least
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A blog section and Project section -- &lt;a href="https://saurabhdaware.in/#projects" rel="noopener noreferrer"&gt;Example&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A contact form (call to action) -- &lt;a href="https://jacekjeznach.com/contact/" rel="noopener noreferrer"&gt;Example&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A clients section (if applied) -- &lt;a href="https://bratsun.com/#clients" rel="noopener noreferrer"&gt;Example&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A Skills section (depends on you) -- &lt;a href="https://jacekjeznach.com/skills/" rel="noopener noreferrer"&gt;Example&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  I hope this was helpful to you
&lt;/h4&gt;

&lt;h4&gt;
  
  
  Comment your Portfolio Website down in the comments, let's connect with each other.
&lt;/h4&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%2Fmedia0.giphy.com%2Fmedia%2F9P1sEWEaUmsIryh7vj%2F200.gif" 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%2Fmedia0.giphy.com%2Fmedia%2F9P1sEWEaUmsIryh7vj%2F200.gif" alt="comment down"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>portfolio</category>
      <category>career</category>
      <category>beginners</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Tools Every Developer Should Know and Use</title>
      <dc:creator>Himanshu Tiwari 🌼</dc:creator>
      <pubDate>Fri, 05 Feb 2021 05:17:26 +0000</pubDate>
      <link>https://dev.to/himanshutiwari15/tools-every-developer-should-know-and-use-245l</link>
      <guid>https://dev.to/himanshutiwari15/tools-every-developer-should-know-and-use-245l</guid>
      <description>&lt;p&gt;&lt;code&gt;SO FAR SO GOOD&lt;/code&gt; &lt;br&gt;
I hope your Web Dev journey sounds like that.&lt;br&gt;
Well if &lt;code&gt;yes&lt;/code&gt;, then I have something that can make good to great and,&lt;br&gt;
if &lt;code&gt;no&lt;/code&gt;, then don't worry folks these tools will make that good.&lt;/p&gt;

&lt;p&gt;I have some fantastic Chrome Extensions and Websites that can make your life way easier as a web developer. I use these tools and they are amazing, secure, and time-saving.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note: I highly encourage you to learn basics(HTML, CSS, JS), then move towards using these tools.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;Websites&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://uxwing.com/"&gt;Uxwing&lt;/a&gt;: For Free PNG and SVG icons for your projects.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://unsplash.com/"&gt;Unsplash&lt;/a&gt;: For Wallpapers and Images of different sizes.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://jsonplaceholder.typicode.com/"&gt;Jsonplaceholder&lt;/a&gt; : For JSON free API.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://developers.google.com/web/tools/lighthouse/"&gt;lighthouse&lt;/a&gt;: Lighthouse is an open-source, automated tool for improving the quality of web pages. You can run it against any web page, public, or requiring authentication. It has audits for performance, accessibility, progressive web apps, SEO, and more.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://css-tricks.com/"&gt;Css-tricks&lt;/a&gt;: Name suggests what it does :) &lt;em&gt;fantastic css articles&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://brumm.af/shadows"&gt;css-box-shadow&lt;/a&gt;: Create box shadows in an instant, do check out front-end developers.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://cssgradient.io/"&gt;css-gradient&lt;/a&gt;: Create gradient real quick and easy.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://sharingbuttons.io/"&gt;Sharingbuttons.io&lt;/a&gt;: Super fast and easy Social Media Sharing Buttons. No JavaScript. No tracking. Super Helpful.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://css2js.dotenv.dev/"&gt;convert CSS to JS&lt;/a&gt;: Convert CSS to JS and VICE VERSA.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Extensions&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://chrome.google.com/webstore/detail/wappalyzer/gppongmhjkpfnbhagpmjfkannfbllamg"&gt;Wappalyzer&lt;/a&gt;: Wappalyzer is a technology profiler that shows you what websites are built with. Find out what CMS a website is using, as well as any framework, eCommerce platform, JavaScript libraries, and many more.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://chrome.google.com/webstore/detail/adblock-for-youtube/cmedhionkhpnakcndndgjdbohmhepckk"&gt;Adblock&lt;/a&gt;: Enough of Cringy and attention deflecting ads.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://chrome.google.com/webstore/detail/whatfont/jabopobgcpjmedljpbcaablpmlmfcogm"&gt;WhatFont&lt;/a&gt;: The easiest way to identify fonts on web pages.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://chrome.google.com/webstore/detail/colorzilla/bhlhnicpbhignbdhedgjhgdocnmhomnp"&gt;ColorZilla&lt;/a&gt;: Advanced Eyedropper, Color Picker, Gradient Generator, and other colorful goodies.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://chrome.google.com/webstore/detail/image-downloader-imageye/agionbommeaifngbhincahgmoflcikhm"&gt;Imageye - Image downloader&lt;/a&gt;: Find and download all images on a web page. The best tool, I use while cloning any website for practice.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you have any tool to share, then do write it in the comments &lt;br&gt;
and if you like my work then follow me on&lt;br&gt;
Twitter 😊 &lt;a href="https://twitter.com/Himansh34258296"&gt;Himanshu&lt;/a&gt;&lt;br&gt;
Linkedin 😄 &lt;a href="https://www.linkedin.com/in/thehimanshutiwari/"&gt;thehimanshutiwari&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>productivity</category>
      <category>career</category>
      <category>devjournal</category>
    </item>
    <item>
      <title>Important JavaScript Interview Q&amp;A </title>
      <dc:creator>Himanshu Tiwari 🌼</dc:creator>
      <pubDate>Mon, 01 Feb 2021 01:00:01 +0000</pubDate>
      <link>https://dev.to/himanshutiwari15/important-javascript-interview-q-a-13hj</link>
      <guid>https://dev.to/himanshutiwari15/important-javascript-interview-q-a-13hj</guid>
      <description>&lt;p&gt;Ahaan, No time waste let's directly check those questions.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthumbs.gfycat.com%2FImmediateYellowishGar-small.gif" 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%2Fthumbs.gfycat.com%2FImmediateYellowishGar-small.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;center&gt;Q1- What is a callback?&lt;/center&gt;
&lt;/h2&gt;

 

&lt;p&gt;Callback functions are passed as arguments of other functions and they are normally executed at the end of the parent function.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;For an example check &lt;a href="https://www.freecodecamp.org/news/what-is-a-callback-function-in-javascript/" rel="noopener noreferrer"&gt;this&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  &lt;center&gt;Q2- What is CORS?&lt;/center&gt;
&lt;/h2&gt;

 

&lt;p&gt;Cross-Origin Resource Sharing or CORS is a mechanism that uses additional HTTP headers to grant a browser permission to access resources from a server at an origin different from the website &lt;br&gt;
origin.&lt;/p&gt;

&lt;p&gt;An example of a cross-origin request is a web application served from &lt;code&gt;http://myowndomain.com&lt;/code&gt; that uses AJAX to make a request for &lt;code&gt;http://yourbaddomain.com&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;center&gt;Q3- Evaluate 0.1 + 0.2 === 0.3 ?&lt;/center&gt;
&lt;/h2&gt;

 

&lt;p&gt;It evaluates to &lt;code&gt;false&lt;/code&gt; because JavaScript uses the IEEE 754 standard for Math and it makes use of 64-bit floating numbers. This causes precision errors when doing decimal calculations, in short, due to computers working in Base 2 while decimal is Base 10.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="mf"&gt;0.1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mf"&gt;0.2&lt;/span&gt;  
&lt;span class="c1"&gt;//OUTPUT&lt;/span&gt;
&lt;span class="c1"&gt;//0.30000000000000004&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;center&gt;Q4- What is the difference between lexical scoping and dynamic scoping ?&lt;/center&gt;
&lt;/h2&gt;


 

&lt;p&gt;Lexical scoping or Static scoping refers to when the location of a function's definition determines which variables you have access to. On the other hand, dynamic scoping uses the location of the function's invocation to determine which variables are available.&lt;br&gt;
For better source code we often use Lexical scoping.&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;center&gt;Q5- What is the difference between &lt;code&gt;undefined&lt;/code&gt; and &lt;code&gt;null&lt;/code&gt; ?&lt;/center&gt;
&lt;/h2&gt;

 

&lt;p&gt;The major difference - &lt;code&gt;null&lt;/code&gt; is explicit while &lt;code&gt;undefined&lt;/code&gt; is implicit. Let's say we have a variable and we don't have a value associated with that, so that makes it undefined but &lt;code&gt;null&lt;/code&gt; is set as the value to explicitly indicate “no value”. &lt;code&gt;undefined&lt;/code&gt; is used when the nothing is "not" known, and &lt;code&gt;null&lt;/code&gt; is used when the nothing is known.&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;center&gt;Q6- Does JavaScript pass by value or by reference?&lt;/center&gt;
&lt;/h2&gt;

 

&lt;p&gt;&lt;code&gt;Pass by value&lt;/code&gt; always.However, with objects, the value is a reference to the object.&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;center&gt;Q7- What is the output of the following code?
&lt;/center&gt;
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;0,1,2&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;

&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nx"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



 

&lt;p&gt;TRUE - automatic type conversion&lt;br&gt;
FALSE - Arrays are compared by reference&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;center&gt;Q8- Are semicolons required in JavaScript?&lt;/center&gt;
&lt;/h2&gt;

 

&lt;p&gt;&lt;em&gt;Sometimes&lt;/em&gt;&lt;br&gt;
Semicolons are usually optional in JavaScript but have edge cases where they are required.&lt;/p&gt;

&lt;p&gt;If you don't use semicolons, tools like &lt;a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode" rel="noopener noreferrer"&gt;Prettier&lt;/a&gt; will insert semicolons for you in the places where they are required to save in a text editor to prevent errors.&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;center&gt;Q9- What does the following code evaluate to?
&lt;/center&gt;
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



 

&lt;p&gt;It evaluates to "string".&lt;br&gt;
&lt;code&gt;typeof 0&lt;/code&gt; evaluates to number&lt;br&gt;
and &lt;code&gt;typeof "number"&lt;/code&gt; evalutes to string&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%2Fi.gifer.com%2FSs1b.gif" 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%2Fi.gifer.com%2FSs1b.gif" alt="ALT TEXT"&gt;&lt;/a&gt;&lt;br&gt;
&lt;code&gt;Enough for today&lt;/code&gt;&lt;br&gt;
But not for JavaScript ;)&lt;br&gt;
If you have some amazing Questions to add, let's add them in the comments which will be beneficial for everyone.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>interview</category>
      <category>webdev</category>
      <category>devops</category>
    </item>
    <item>
      <title>Date &amp; Time in JavaScript</title>
      <dc:creator>Himanshu Tiwari 🌼</dc:creator>
      <pubDate>Sun, 24 Jan 2021 13:07:39 +0000</pubDate>
      <link>https://dev.to/himanshutiwari15/date-time-in-javascript-1lmd</link>
      <guid>https://dev.to/himanshutiwari15/date-time-in-javascript-1lmd</guid>
      <description>&lt;p&gt;Let’s meet someone amazing today 😁, haha a new built-in object: Date. In Javascript, we can easily work with Date &amp;amp; Time using the Date class. To create an object of this type we use the &lt;em&gt;new&lt;/em&gt; keyword.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt; &lt;span class="c1"&gt;// Creating a Date object&lt;/span&gt;
    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;dateObj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;dateObj&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By doing this, we create an object with the current date and time formed by weekday, month, day, year, hours, minutes, seconds, and timezone. Now that's friggin precise 😝.&lt;/p&gt;

&lt;h3&gt;
  
  
  Methods of the Date object   😵
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;getDate()&lt;/td&gt;
&lt;td&gt;Returns the day of the month (1 to 31)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;getDay()&lt;/td&gt;
&lt;td&gt;Returns the weekday (0 - Sunday to 6 -&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Saturday)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;getFullYear()&lt;/td&gt;
&lt;td&gt;Returns the full year (YYYY)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;getMonth()&lt;/td&gt;
&lt;td&gt;Returns the month (0 to 11)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;getHours()&lt;/td&gt;
&lt;td&gt;Returns the hours (0 to 23)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;getMinutes()&lt;/td&gt;
&lt;td&gt;Return the minutes (0 to 59)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;getSeconds()&lt;/td&gt;
&lt;td&gt;Returns the seconds (0 to 59)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;getMilliseconds()&lt;/td&gt;
&lt;td&gt;Returns the milliseconds (0 to 999)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;getTime()&lt;/td&gt;
&lt;td&gt;Returns the number of milliseconds since the&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Epoch(Jan 1st, 1970, 00:00:00)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;setTime()&lt;/td&gt;
&lt;td&gt;Creates a specific date from milliseconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;since the epoch.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h5&gt;
  
  
  What is UNIX EPOCH?😰
&lt;/h5&gt;

&lt;p&gt;The Epoch is present in most programming languages. We can consider it the starting point of counting the time. This is useful to do calculations with date and time.&lt;/p&gt;

&lt;p&gt;Javascript uses the Unix Epoch, which is: Jan 1st, 1970, 00:00:00, UTC.&lt;/p&gt;

&lt;h3&gt;
  
  
  A Time Chart for reference   😅
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;th&gt;Milliseconds (ms)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1 second&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 minute&lt;/td&gt;
&lt;td&gt;60,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 hour&lt;/td&gt;
&lt;td&gt;3,600,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 day&lt;/td&gt;
&lt;td&gt;86,400,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 year (365 days)&lt;/td&gt;
&lt;td&gt;31,536,000,000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h5&gt;
  
  
  How to calculate how many hours have passed since the Epoch?   😬
&lt;/h5&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;Obj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

    &lt;span class="nx"&gt;Obj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;Obj&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;getTime&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;hours&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;Obj&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;3600000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;hours&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Passing Argument to &lt;strong&gt;Date()&lt;/strong&gt;   😷
&lt;/h3&gt;

&lt;p&gt;We created date objects without passing any arguments, this is why they represented the current time but we can also use them with specific objects or better to say a specific number of objects.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Numeric arguments&lt;/th&gt;
&lt;th&gt;Time represents&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;One&lt;/td&gt;
&lt;td&gt;milliseconds since the epoch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Two&lt;/td&gt;
&lt;td&gt;years and month (months go from 0 to 11)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Three&lt;/td&gt;
&lt;td&gt;years, month, and day&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Four&lt;/td&gt;
&lt;td&gt;years, month, day, and hours&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Five&lt;/td&gt;
&lt;td&gt;years, month, days, hours, minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Six&lt;/td&gt;
&lt;td&gt;years, month, day, hours, minutes, and&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;Obj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2021&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;24&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nx"&gt;Obj&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can also pass strings as an argument and in different formats&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ISO date: "2020-03-18" (YYYY-MM-DD)&lt;/li&gt;
&lt;li&gt;Short Date: "03/18/2020" (MM/DD/YYYY)&lt;/li&gt;
&lt;li&gt;Long Date: "Mar 18 2020" or "18 Mar 2020"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I hope you guys have learnt and saved it for later reference&lt;br&gt;
and if you found my grammatical mistakes then don't forget to comment them 😂&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>computerscience</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Grids -&gt; CSS: Learn through code way</title>
      <dc:creator>Himanshu Tiwari 🌼</dc:creator>
      <pubDate>Tue, 19 Jan 2021 10:06:13 +0000</pubDate>
      <link>https://dev.to/himanshutiwari15/grids-css-learn-through-code-way-3lga</link>
      <guid>https://dev.to/himanshutiwari15/grids-css-learn-through-code-way-3lga</guid>
      <description>&lt;p&gt;Today let's understand Grids in a practical way&lt;br&gt;
All you have to do is copy the code and paste it into a code editor and before reading from top to bottom, just have a quick look at the HTML part.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note: Try Commenting and un-commenting accordingly as you go &lt;br&gt;
        down for playing with items&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="c"&gt;&amp;lt;!-- 
How to read
Read from top to down and read with comments also 
comment and uncomment accordingly as you try different things.

I hope you have prior knowledge of CSS basics so that you don't 
act noob here ;) LOL --&amp;gt;&lt;/span&gt;

&lt;span class="c"&gt;&amp;lt;!-- 
The whole HTML is full of 
GOLDEN WORDS, so do read them as soon as they encounter --&amp;gt;&lt;/span&gt;

&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset=&lt;/span&gt;&lt;span class="s"&gt;"UTF-8"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial- 
                                   scale=1.0"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;CSS-GRID-SYSTEM&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
        &lt;span class="nc"&gt;.container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="c"&gt;/*
            ⭐ GOLDEN WORDS: 1 
            So when we start, we begin by making the main 
            the container as display: grid; 
            and that's a really important thing to understand.

            After this we use a very basic property i.e. 
            grid-template-columns 
            which takes the number of columns and their width. 
            Like in the example below you can see, I have written 
            3 widths, i.e. I am dividing the screen into 3 columns 
            with respective widths.
            The width can be in pixel or in fr... most commonly 
            fr, fr divides the screen into columns...
            let's talk with example see GW:2 where fr is written  
            */&lt;/span&gt;

            &lt;span class="py"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;300px&lt;/span&gt; &lt;span class="m"&gt;120px&lt;/span&gt; &lt;span class="m"&gt;120px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="py"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;120px&lt;/span&gt; &lt;span class="nb"&gt;auto&lt;/span&gt; &lt;span class="m"&gt;120px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; 

            &lt;span class="c"&gt;/*
            ⭐ GOLDEN WORDS: 2 
            here in the example below the screen is divided into 
            1+2+1 columns and the second column is twice 
            the first column. 
            FR stands for fraction, try practicing by changing 
            values things will get more clear then
            */&lt;/span&gt;

            &lt;span class="py"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="n"&gt;fr&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="n"&gt;fr&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="n"&gt;fr&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

            &lt;span class="c"&gt;/* 
               Repeat takes 2 parameters, 
               1: the number of columns or rows used accordingly
               2: width of auto or __px or any numerical value
            */&lt;/span&gt;

            &lt;span class="py"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; 

            &lt;span class="c"&gt;/* 
               GridGap is simple it's like margin for grids try 
               playing with them you will understand 
            */&lt;/span&gt;

            &lt;span class="py"&gt;grid-gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="c"&gt;/* grid-column-gap: 2rem; */&lt;/span&gt;
            &lt;span class="c"&gt;/* grid-row-gap: 3rem; */&lt;/span&gt;

            &lt;span class="c"&gt;/* grid-template-rows: 20px 20px 20px ; */&lt;/span&gt;
            &lt;span class="c"&gt;/* grid-template-rows: repeat(4, auto); */&lt;/span&gt;

            &lt;span class="c"&gt;/*
            ⭐ GOLDEN WORDS : 3
            So you might have understood the above statement, 
            right!!! 
            __NO :(__
            That's the same as what I did for columns which now is 
            done for rows.
            N O W
            what is this auto rows property,
            i.e. Go and see the HTML item tags you can see there 
            are 9 total items but we styled only 4 or 3 columns 
            and a width of 3 or 4 items so what about others, so 
            we can style their widths using this 👇 property
                          grid-auto-rows: _____; property
            try working with it for more explanation 
            */&lt;/span&gt;

            &lt;span class="py"&gt;grid-auto-rows&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;120px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; 

            &lt;span class="c"&gt;/*
            ⭐ GOLDEN WORDS: 4 
            GTC or grid-template-columns: ___; can be used in a 
            bit different way with auto-fit and minmax property 
            and basically, it has a certain reason 

            reason: repeat contains 2 parameters 
            (as I told above), number of rows 
            or columns and size of them, so here auto-fit is for 
            the number of columns i.e. it will adjust accordingly, 
            to the screen and minmax property is for setting the 
            minimum and the maximum width of the item grids. Here 
            300px is minimum width and 1fr(fraction) is for 
            maximum width i.e. for 1 .item (class) on-screen 
            alone... 
            try practicing this a few times and you will 
            understand this well
            few devs use media queries instead so we can use that 
            as well( I prefer using media queries for that) 
            */&lt;/span&gt;

            &lt;span class="py"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auto-fit&lt;/span&gt; &lt;span class="p"&gt;,&lt;/span&gt; 
                                   &lt;span class="n"&gt;minmax&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;300px&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="n"&gt;fr&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;

            &lt;span class="c"&gt;/* justify-content: center; */&lt;/span&gt;


            &lt;span class="c"&gt;/*
            ⭐ GOLDEN WORDS: 5 
            A very powerful tool to make designs of a website is 
            grid but the area tool in the grid is something that 
            makes it so so powerful.
            So, I did some tweaks here
            first I took 3 items and gave them id's and remember 
            to comment on other items before moving forward. 
            then 
            gave them grid-area while styling there id's
            anything relevant let's say a name (check below👇) 
            after that in the container itself, we made the 
            grid-template-areas: ___; 
            this property uses those areas to represent 
            design

            It designs in a 2D representation 
            ___________________________________________
            |__________|__________|_________|_________|
            |__________|__________|_________|_________|
            |__________|__________|_________|_________|


            i.e. every name is 1fr width and we write it as we 
            want it to appear(try to write logically and 
            practically possible things for god's sake  🙏), 
            a better way to understand this is to run 
            the below code and see... 
            don't forget to play by yourself
             */&lt;/span&gt;
            &lt;span class="py"&gt;grid-template-areas&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; 
            &lt;span class="s1"&gt;"itemOne itemOne itemTwo itemTwo"&lt;/span&gt;
            &lt;span class="s1"&gt;"itemThree itemThree itemTwo itemTwo"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="nc"&gt;.item&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="c"&gt;/* height: 100px;
            width: 100px; */&lt;/span&gt;
            &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;rgb&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;62&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="m"&gt;210&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="m"&gt;255&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="no"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="c"&gt;/* margin: 3px; */&lt;/span&gt;
            &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;10px&lt;/span&gt; &lt;span class="m"&gt;5px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="c"&gt;/* 
        ⭐ GOLDEN WORDS: 6 
        Now as you are an amazing learner so it's time to 
        learn Spanning 
        So we selected the first item using the first-child 
        selector property and now used grid-column for spanning 
        through the column and the way I did it is by giving the 
        start "1" and then a "/" with a "span" keyword and then 
        end 2, 
        results were item 1 now spans all the way to col-2 
        the very same can be done with grid-row selector.
        Those commented 4 lines are another way of representation 
        and nothing else. This will be more clear only if you play 
        more with this, try experimenting with the below 
        statements
        */&lt;/span&gt;
        &lt;span class="nc"&gt;.item&lt;/span&gt;&lt;span class="nd"&gt;:first-child&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

            &lt;span class="c"&gt;/* grid-column-start: 1;
            grid-column-end: 3;
            grid-row-start: 1;
            grid-row-end: 3; */&lt;/span&gt;

            &lt;span class="nl"&gt;grid-column&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt; &lt;span class="p"&gt;/&lt;/span&gt; &lt;span class="n"&gt;span&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="nl"&gt;grid-row&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt; &lt;span class="p"&gt;/&lt;/span&gt; &lt;span class="n"&gt;span&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="c"&gt;/* Check them for golden word 5 ☝️ */&lt;/span&gt;

        &lt;span class="nf"&gt;#one&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="py"&gt;grid-area&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;itemOne&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="nf"&gt;#two&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="py"&gt;grid-area&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;itemTwo&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="nf"&gt;#three&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="py"&gt;grid-area&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;itemThree&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"container"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id = &lt;/span&gt;&lt;span class="s"&gt;one&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"item"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is Item-1&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id = &lt;/span&gt;&lt;span class="s"&gt;two&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"item"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is Item-2&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id = &lt;/span&gt;&lt;span class="s"&gt;three&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"item"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is Item-3&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"item"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is Item-4&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"item"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is Item-5&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"item"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is Item-6&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"item"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is Item-7&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"item"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is Item-8&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"item"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is Item-9&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I hope you have learned something 👍 &lt;br&gt;
haha found my grammatical mistakes then comment them down&lt;/p&gt;

</description>
      <category>css</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Namespacing in JavaScript</title>
      <dc:creator>Himanshu Tiwari 🌼</dc:creator>
      <pubDate>Sun, 17 Jan 2021 12:20:29 +0000</pubDate>
      <link>https://dev.to/himanshutiwari15/namespacing-in-javascript-5g82</link>
      <guid>https://dev.to/himanshutiwari15/namespacing-in-javascript-5g82</guid>
      <description>&lt;p&gt;One of the most confusing things in JavaScript, I found was namespacing. So, I learned about it and thought to share the notes with everyone who is confused about it.&lt;/p&gt;

&lt;p&gt;When we make applications and as our application grows and becomes more complex, it is likely that at some point two variables or functions will end up having the same name, resulting in conflict.&lt;/p&gt;

&lt;p&gt;To avoid this we can make use of namespaces, which will create a local scope for our variables and functions. Javascript doesn't actually have namespaces like other programming languages, so what we'll see there are alternative ways of achieving the same outcome. The most common way of simulating namespaces is via objects.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Let's talk about some approaches which you can often use and often see others using it&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1. By Direct Assignment
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;webApp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;

&lt;span class="nx"&gt;webApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;webApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;next&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;webApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nx"&gt;webApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;reset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;webApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   
&lt;span class="p"&gt;}&lt;/span&gt;

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

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Note that the names "id" or "next" are generic names that could easily be repeated many times in a large web application. Instead of adding more words to our variables, like "idOfwebApp", and making them separate in the global scope, we place them inside an object that will hold all information about our web app.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;So, let's break the above code for this example and you will automatically understand for others below.&lt;/em&gt;&lt;br&gt;
If we take a close look here, then what is happening is, it is acting as an object having a key named id and 2 functions. &lt;br&gt;
If we write&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;webApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;next&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
&lt;span class="c1"&gt;//output will be 0 itself, just like an object.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;You can use &lt;strong&gt;this&lt;/strong&gt; instead of using the same big long names   &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  2. Using Object Literal Notation
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;webApp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

    &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

    &lt;span class="na"&gt;next&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   
    &lt;span class="p"&gt;},&lt;/span&gt;

    &lt;span class="na"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;    
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the most common thing we often see, the most common namespacing we basically use.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The Module Pattern
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;webApp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;next&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;    
        &lt;span class="p"&gt;},&lt;/span&gt;

        &lt;span class="na"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nx"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;     
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;};&lt;/span&gt;  
&lt;span class="p"&gt;})();&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is where things turn tricky!!!&lt;br&gt;
Everything must be clear to you but what that "();" is representing is -- self-invoking function.&lt;/p&gt;

&lt;h4&gt;
  
  
  So Why Module approach over Object Litteral
&lt;/h4&gt;

&lt;p&gt;Object literal notation is rigid – it's all about property assignments, with no room for supporting logic. Moreover, all properties must be initialized and property values cannot easily cross-reference one another. The module pattern suffers none of these constraints and gives us the added benefit of privacy.&lt;/p&gt;

&lt;h4&gt;
  
  
  Conclusion
&lt;/h4&gt;

&lt;p&gt;The use of the Module Approach is flexible for big Projects and can be used whereas the Object approach is better for mini-projects and addons less complexity.&lt;/p&gt;

&lt;h4&gt;
  
  
  Further Read
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ultimatecourses.com/blog/mastering-the-module-pattern"&gt;Read More about Module Pattern&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks For the read, hope you learned something :)&lt;br&gt;
Found my grammatical mistakes, haha comment them down&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>frontend</category>
      <category>webdevlopment</category>
    </item>
  </channel>
</rss>
