<?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: codeWithNithin</title>
    <description>The latest articles on DEV Community by codeWithNithin (@codewithnithin).</description>
    <link>https://dev.to/codewithnithin</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%2F687180%2Fe9bbac3e-f6e2-4a38-b89d-83f5e7b8014a.png</url>
      <title>DEV Community: codeWithNithin</title>
      <link>https://dev.to/codewithnithin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/codewithnithin"/>
    <language>en</language>
    <item>
      <title>Intro to Node.JS</title>
      <dc:creator>codeWithNithin</dc:creator>
      <pubDate>Mon, 19 Aug 2024 06:19:21 +0000</pubDate>
      <link>https://dev.to/codewithnithin/intro-to-nodejs-548c</link>
      <guid>https://dev.to/codewithnithin/intro-to-nodejs-548c</guid>
      <description>&lt;h1&gt;
  
  
  Episode - 01 - Introduction to NodeJS
&lt;/h1&gt;

&lt;h1&gt;
  
  
  NodeJS
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;official website says Run JS everywhere.&lt;/li&gt;
&lt;li&gt;Its a JS runtime built on chrome's v8 JS Engine.&lt;/li&gt;
&lt;li&gt;IT is a cross-platform means, it can run on any operating systems (windows, linux, MAC).&lt;/li&gt;
&lt;li&gt;NodeJS is open source and maintained by OpenJS foundation.&lt;/li&gt;
&lt;li&gt; NodeJS helps JS execute or run outside of the browser.&lt;/li&gt;
&lt;li&gt;We can not only create servers, we can create lot more thing from it.&lt;/li&gt;
&lt;li&gt;some keyword: event-driven architecture, non-blocking I/O (asynchronous I/O).&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  History of NodeJS
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;NodeJS developed by Ryan Dahl in 2009 - 1st version of it.&lt;/li&gt;
&lt;li&gt; It is so popular even today.&lt;/li&gt;
&lt;li&gt;It also had controversy.&lt;/li&gt;
&lt;li&gt;There was a chance, where NodeJS could have been buried.&lt;/li&gt;
&lt;li&gt;To run a JS, we need JS engine. &lt;/li&gt;
&lt;li&gt;So, wherever u see JS code, there will JS engine to execute that JS code.&lt;/li&gt;
&lt;li&gt;When NodeJS developed function SpiderMonkey is JS engine used which is the Firefox JS engine.&lt;/li&gt;
&lt;li&gt;google chrome has a engine called v8.&lt;/li&gt;
&lt;li&gt;Firefox has SpiderMonkey.&lt;/li&gt;
&lt;li&gt;In just 2 days he, decied to start NodeJS with google v8 engine.&lt;/li&gt;
&lt;li&gt;later on nodejs build with spidermonkey also.&lt;/li&gt;
&lt;li&gt;But official doc, is using Google's v8 engine.&lt;/li&gt;
&lt;li&gt;Company name called Joyent, working on something similar to NodeJS.&lt;/li&gt;
&lt;li&gt;Earlier name of NodeJS was web.js.&lt;/li&gt;
&lt;li&gt;There was a apache server, which is kind of blocky.&lt;/li&gt;
&lt;li&gt;In 2010, NPM happend.&lt;/li&gt;
&lt;li&gt;In 2011, support for Windows os also came up, that was led by Joyent

&lt;ul&gt;
&lt;li&gt;MS.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

</description>
      <category>node</category>
    </item>
    <item>
      <title>How to be a Front-end dev in 2022?</title>
      <dc:creator>codeWithNithin</dc:creator>
      <pubDate>Mon, 06 Sep 2021 05:08:39 +0000</pubDate>
      <link>https://dev.to/codewithnithin/how-to-be-a-front-end-dev-in-2022-1ag3</link>
      <guid>https://dev.to/codewithnithin/how-to-be-a-front-end-dev-in-2022-1ag3</guid>
      <description>&lt;p&gt;To become a front-end dev, first you need to learn HTML,CSS,JS.&lt;br&gt;
Before learning to code in HTML,CSS,JS. Know there roles in web development or in web page.&lt;br&gt;
1.What to learn in HTML?&lt;br&gt;
1.HTML semantic layouts, some of the basic tags like &lt;a&gt;,&lt;p&gt;, , etc....&lt;br&gt;
2.difference between block level and inline tags or elements.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;div and span elements
5.how to structure the document.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2.What to learn in CSS?&lt;br&gt;
 1.How to Use CSS in web development (inline, internal, external) styling&lt;br&gt;
 2.Then learn the CSS box model (this is a must learn for everyone)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Then the selectors (class, id, universal, etc...)&lt;/li&gt;
&lt;li&gt;Learn the combinators(+, ~,&amp;gt;, ).&lt;/li&gt;
&lt;li&gt;learn about display property (block, inline, inline-block)
6.Positon property (absolute, relative, fixed, sticky)&lt;/li&gt;
&lt;li&gt;Flex and grid&lt;/li&gt;
&lt;li&gt;build a website using HTML and CSS without JS.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;3.What to learn in JS?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;JS basics (data types, variables, functions, for, while, do-while loop, arrays, objects etc...)&lt;/li&gt;
&lt;li&gt;after learning the above concepts. start practicing it at 
&lt;a href="https://edabit.com/challenges"&gt;https://edabit.com/challenges&lt;/a&gt;, only for beginners, who just started to learning to code.&lt;/li&gt;
&lt;li&gt;DOM concepts, if u are using a framework (its not a must)&lt;/li&gt;
&lt;li&gt;now go through the concepts like hoisting, closure and all the concepts.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Bonus tips, &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;u should learn HTML and css, as you work on the real-world projects&lt;/li&gt;
&lt;li&gt;In JS, practice try to practice array and object structure most often&lt;/li&gt;
&lt;li&gt;in arrays must know methods are filter, map, reduce, push, pop, shift, unshift, slice, findIndex, indexOf and etc..&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;At last pick one framework or library of JS. (Angular, vue, React ).&lt;/p&gt;

&lt;/a&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>codenewbie</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Nodejs or Python which one is good for backend development?</title>
      <dc:creator>codeWithNithin</dc:creator>
      <pubDate>Thu, 02 Sep 2021 04:51:48 +0000</pubDate>
      <link>https://dev.to/codewithnithin/nodejs-or-python-which-one-is-good-for-backend-development-iji</link>
      <guid>https://dev.to/codewithnithin/nodejs-or-python-which-one-is-good-for-backend-development-iji</guid>
      <description>&lt;p&gt;I think as a front-end developer, i should go with the Nodejs. what about you?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Edabit challenge 4 | strings | very easy | Miserable Parody of a Calculator</title>
      <dc:creator>codeWithNithin</dc:creator>
      <pubDate>Fri, 27 Aug 2021 05:53:56 +0000</pubDate>
      <link>https://dev.to/codewithnithin/edabit-challenge-4-strings-very-easy-miserable-parody-of-a-calculator-12lp</link>
      <guid>https://dev.to/codewithnithin/edabit-challenge-4-strings-very-easy-miserable-parody-of-a-calculator-12lp</guid>
      <description>&lt;p&gt;Create a function that will handle simple math expressions. The input is an expression in the form of a string.&lt;/p&gt;

&lt;p&gt;Examples&lt;br&gt;
calculator("23+4") ➞ 27&lt;/p&gt;

&lt;p&gt;calculator("45-15") ➞ 30&lt;/p&gt;

&lt;p&gt;calculator("13+2-5*2") ➞ 5&lt;/p&gt;

&lt;p&gt;calculator("49/7*2-3") ➞ 11&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="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;calculator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;exp&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="nb"&gt;eval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;);&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;calculator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;23+4&lt;/span&gt;&lt;span class="dl"&gt;"&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;calculator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;45-15&lt;/span&gt;&lt;span class="dl"&gt;"&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;calculator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;13+2-5*2&lt;/span&gt;&lt;span class="dl"&gt;"&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;calculator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;49/7*2-3&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>challenge</category>
      <category>webdev</category>
      <category>codenewbie</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Edabit challenge 3 | strings very easy | Boolean to String Conversion</title>
      <dc:creator>codeWithNithin</dc:creator>
      <pubDate>Fri, 27 Aug 2021 05:47:46 +0000</pubDate>
      <link>https://dev.to/codewithnithin/edabit-challenge-3-strings-very-easy-boolean-to-string-conversion-3cen</link>
      <guid>https://dev.to/codewithnithin/edabit-challenge-3-strings-very-easy-boolean-to-string-conversion-3cen</guid>
      <description>&lt;p&gt;Create a function that takes a boolean variable flag and returns it as a string.&lt;/p&gt;

&lt;p&gt;Examples&lt;br&gt;
boolToString(true) ➞ "true"&lt;/p&gt;

&lt;p&gt;boolToString(false) ➞ "false"&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="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;tipOne&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;val&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;val&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;tipTwo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;val&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;val&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;tipThree&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;val&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="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;val&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;//you can also write using arrow functions&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;tipOne&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;tipTwo&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;tipThree&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;

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

&lt;/div&gt;



</description>
      <category>challenge</category>
      <category>codenewbie</category>
      <category>javascript</category>
      <category>discuss</category>
    </item>
    <item>
      <title>from let, var and const keyword, which one you use the most in JS?</title>
      <dc:creator>codeWithNithin</dc:creator>
      <pubDate>Fri, 27 Aug 2021 05:33:58 +0000</pubDate>
      <link>https://dev.to/codewithnithin/from-let-var-and-const-keyword-which-one-you-use-the-most-ee6</link>
      <guid>https://dev.to/codewithnithin/from-let-var-and-const-keyword-which-one-you-use-the-most-ee6</guid>
      <description>&lt;p&gt;I only use let and const. mostly const when i know that the variable value doesnt change in the future and let only when i know that the variable value change in the future.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>javascript</category>
      <category>codenewbie</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Which one you use the most in JS for strings, template literals or old string concept?</title>
      <dc:creator>codeWithNithin</dc:creator>
      <pubDate>Fri, 27 Aug 2021 05:29:54 +0000</pubDate>
      <link>https://dev.to/codewithnithin/which-one-you-use-the-most-in-js-for-strings-template-literals-or-old-string-concept-5f69</link>
      <guid>https://dev.to/codewithnithin/which-one-you-use-the-most-in-js-for-strings-template-literals-or-old-string-concept-5f69</guid>
      <description>&lt;p&gt;I do use template literals almost all the time&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>codenewbie</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>which is your favourite programming language?</title>
      <dc:creator>codeWithNithin</dc:creator>
      <pubDate>Thu, 19 Aug 2021 14:48:58 +0000</pubDate>
      <link>https://dev.to/codewithnithin/which-is-your-favourite-programming-language-3f83</link>
      <guid>https://dev.to/codewithnithin/which-is-your-favourite-programming-language-3f83</guid>
      <description>&lt;p&gt;mine is JS&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>programming</category>
    </item>
    <item>
      <title>How to create a variable in JS?</title>
      <dc:creator>codeWithNithin</dc:creator>
      <pubDate>Wed, 18 Aug 2021 13:28:39 +0000</pubDate>
      <link>https://dev.to/codewithnithin/how-to-create-a-variable-in-js-5881</link>
      <guid>https://dev.to/codewithnithin/how-to-create-a-variable-in-js-5881</guid>
      <description>&lt;p&gt;To create a variable in JS, we have 3 keywords, let, var and const.&lt;br&gt;
where let and const is introduced in ES6, and var is the old keyword used to declare the variables.&lt;/p&gt;

&lt;p&gt;For Example:&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="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;firstName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Nithin&lt;/span&gt;&lt;span class="dl"&gt;'&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;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;23&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;lastName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;kumar&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;here let and var behaves in the same way, that is, we can change the value of the variable which is declared as let or var. &lt;/p&gt;

&lt;p&gt;For example:&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="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;firstName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Nithin&lt;/span&gt;&lt;span class="dl"&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;lastName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;kumar&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;firstName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Varsha&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nx"&gt;lastName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;kumari&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But const is a keyword, which doesnt change its variable value once it is being assigned.&lt;/p&gt;

&lt;p&gt;For example:&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="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;23&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nx"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;24&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// will give error&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>codenewbie</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to prepare for front-end interview for 2022?</title>
      <dc:creator>codeWithNithin</dc:creator>
      <pubDate>Mon, 16 Aug 2021 08:28:38 +0000</pubDate>
      <link>https://dev.to/codewithnithin/how-to-prepare-for-front-end-interview-for-2022-4mnm</link>
      <guid>https://dev.to/codewithnithin/how-to-prepare-for-front-end-interview-for-2022-4mnm</guid>
      <description>&lt;p&gt;As a front-end developer, 80% of the interview is based on JavaScript, then 15% of HTML and CSS. 5% on JS frameworks, am i right?&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>codenewbie</category>
      <category>discuss</category>
    </item>
    <item>
      <title>what's your deepest desire?</title>
      <dc:creator>codeWithNithin</dc:creator>
      <pubDate>Mon, 16 Aug 2021 07:19:42 +0000</pubDate>
      <link>https://dev.to/codewithnithin/what-s-your-deepest-desire-36ch</link>
      <guid>https://dev.to/codewithnithin/what-s-your-deepest-desire-36ch</guid>
      <description>&lt;p&gt;mine, is to become a expert in full stack dev, and also a millionare soon.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>javascript</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Edabit challenge 2 | strings | very easy | Return Something to Me!</title>
      <dc:creator>codeWithNithin</dc:creator>
      <pubDate>Mon, 16 Aug 2021 07:14:32 +0000</pubDate>
      <link>https://dev.to/codewithnithin/edabit-challenge-2-strings-very-easy-return-something-to-me-4354</link>
      <guid>https://dev.to/codewithnithin/edabit-challenge-2-strings-very-easy-return-something-to-me-4354</guid>
      <description>&lt;p&gt;Write a function that returns the string "something" joined with a space " " and the given argument a.&lt;br&gt;
 giveMeSomething("is better than nothing") ➞ "something is better than nothing"&lt;/p&gt;

&lt;p&gt;giveMeSomething("Bob Jane") ➞ "something Bob Jane"&lt;/p&gt;

&lt;p&gt;giveMeSomething("something") ➞ "something something"&lt;/p&gt;

&lt;p&gt;// solutions&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;// method 1&lt;/span&gt;

&lt;span class="c1"&gt;// with regular&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;giveMeSomething&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;str&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="s2"&gt;`Something &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// with arrow&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;giveMeSomething&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;`something &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// method 2&lt;/span&gt;

&lt;span class="c1"&gt;// with regular&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;giveMeSomething&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;str&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="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Something &lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// with arrow&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;giveMeSomething&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;something &lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;


&lt;span class="c1"&gt;// conclusion&lt;/span&gt;
&lt;span class="c1"&gt;// always use template literal to concat a string, since its easier to use, so use the below code&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;giveMeSomething&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;str&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="s2"&gt;`something &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// with arrow&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;giveMeSomething&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;`something &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>challenge</category>
      <category>codenewbie</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
