<?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: murshedkoli</title>
    <description>The latest articles on DEV Community by murshedkoli (@murshedkoli).</description>
    <link>https://dev.to/murshedkoli</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%2F626686%2Fe671e922-0cac-4765-8fe4-f2571f692287.jpeg</url>
      <title>DEV Community: murshedkoli</title>
      <link>https://dev.to/murshedkoli</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/murshedkoli"/>
    <language>en</language>
    <item>
      <title>Most Important Concept in JavaScript</title>
      <dc:creator>murshedkoli</dc:creator>
      <pubDate>Sat, 08 May 2021 15:16:28 +0000</pubDate>
      <link>https://dev.to/murshedkoli/most-important-concept-in-javascript-49jg</link>
      <guid>https://dev.to/murshedkoli/most-important-concept-in-javascript-49jg</guid>
      <description>&lt;p&gt;For Coding with JavaScript, You must know some concepts from them I descript important 10 here.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;True or False Value&lt;/li&gt;
&lt;li&gt;String: In JavaScript, we can check value true or false event when value is a string. Every String that has length it's true if there is nothing but there are is white space it's a true value, because of white space its length is 1 and an empty string is false.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Number: In javaScript condition 0 is the value of false, every others value is true even it's negative.&lt;/li&gt;
&lt;li&gt;Variable: When a variable value is null or NaN it's false.&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;Double Equal, Triple Equal
When two or three values check with double equal (==) then it checks the value and gives the result true or false.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;expamle: if(10 == "10"){&lt;br&gt;
console.log("it's true")&lt;br&gt;
}else{&lt;br&gt;
console.log("it's false")&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;result: it's true,&lt;/p&gt;

&lt;p&gt;double equal (==) check only value that's why it logs true.&lt;/p&gt;

&lt;p&gt;but when we check with triple equal (===) its log false. because the first 10 is a number and the second "10" is a string their type is not the same triple equal check the value and check the type their value is same but their type is different that's why&lt;br&gt;
It logs false.&lt;/p&gt;

&lt;p&gt;expamle: if(10 === "10"){&lt;br&gt;
console.log("it's true")&lt;br&gt;
}else{&lt;br&gt;
console.log("it's false")&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;result: it's false,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Scope
there is two scopes in JavaScript, 1. block Scope, 2. Global Scope.
when we declare a variable in a function with const or let then the variable is block Scope variable, it's can not be found from outside the function.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;when we declare a variable outside of the function that is global scope we can use it In under the function or outside of the function. &lt;/p&gt;

&lt;p&gt;if we declare a variable in a function with the word "var" then we can access the variable from outside of the function, that case when starting the javaScript scan the whole page and the variable declared with "var" it converts to global scope that's why we can access.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;This Keyword&lt;br&gt;
when we call this keyword in any function then this means the function, this keyword represents this parent. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Asynchronous&lt;br&gt;
JavaScript works synchronize or serial wise, but we can make it asynchronous wise, for that we can use setTimeout.&lt;br&gt;
with setTimeout we can call a function after a certain time. when we use it javaScript is no longer synchronous. &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>JavaScript with another angle</title>
      <dc:creator>murshedkoli</dc:creator>
      <pubDate>Fri, 07 May 2021 15:04:32 +0000</pubDate>
      <link>https://dev.to/murshedkoli/javascript-with-another-angle-hno</link>
      <guid>https://dev.to/murshedkoli/javascript-with-another-angle-hno</guid>
      <description>&lt;ol&gt;
&lt;li&gt;Framework or library
First of all, JavaScript is not a Framework it's a library. the library is smaller than a framework. JavaScript Frameworks Example Is Angular, Vue Js. &lt;/li&gt;
&lt;li&gt;&lt;p&gt;JSX&lt;br&gt;
JSX is a way to write JavaScript and Html Code at a time, for jSX we can mix javascript and HTML, CSS. without jSX we can't write HTML code in JavaScript and JavaScript code in HTML, It's possible for jSX. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;React Data goes Down&lt;br&gt;
Data in react always goes up to down, for example, we can pass data from the parent to child component with props. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How to send data to parent&lt;br&gt;
In react we can pass data from child to parant, but we can't do this with props we can pass function as props and help of the function we can pass data child to parent component.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Conditional Rendering&lt;br&gt;
In react we can easy do conditional rendering, for doing this we can declare a state after that we write our code depense on state. if change state value code render different element.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Components&lt;br&gt;
Component is very helpful for write clean and readable coding, because of component we can write code in a page and named it after that we can use it again and again. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Hooks&lt;br&gt;
React hooks originally is special function, all hooks start with word "use". hooks can use only in function component, we can't use it in class components.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Virtual DOM diffing&lt;br&gt;
when some change is made by user the file is re-filtered and built a new Virtual DOM, now match old and new DOM for find difference. after find difference changes is applied to the actual DOM.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;State&lt;br&gt;
When a component need data than state is very useful. after fetch data we can store in state and use the data when need it. we can change state data using function.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;keep the state small&lt;br&gt;
for best coding experience and clean code always keep state small.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Advance JavaScript ( new for me) </title>
      <dc:creator>murshedkoli</dc:creator>
      <pubDate>Thu, 06 May 2021 15:44:28 +0000</pubDate>
      <link>https://dev.to/murshedkoli/advance-javascript-new-for-me-2fo6</link>
      <guid>https://dev.to/murshedkoli/advance-javascript-new-for-me-2fo6</guid>
      <description>&lt;p&gt;•JavaScript try-catch&lt;/p&gt;

&lt;p&gt;1.The try statement allows to the definition of a block code to be tested for errors while it is run, normally it interrupts the full application and shows errors, if run same code with the Try statement it is not happening.&lt;/p&gt;

&lt;p&gt;2.The catch statement allows showing if any error occurs in the try block.&lt;/p&gt;

&lt;p&gt;•Error handling&lt;br&gt;
   We can give a custom error with the throw statement. &lt;/p&gt;

&lt;p&gt;•Coding style &lt;br&gt;
Today I learn the right way to write JavaScript Code. When we add one space and when we add two spaces, likes. After for/if/while we add one space. &lt;/p&gt;

&lt;p&gt;•Var Declarations and Hoisting&lt;br&gt;
Write a variable name without value it’s called variable declaration and write a variable with the value it’s called variable initialization.&lt;br&gt;
Ex: var a ;&lt;br&gt;
Var a = 10;&lt;br&gt;
When a JavaScript file run it scan whole page and all variable get in the top of the page, that’s why we can use a variable before it has been declared.&lt;/p&gt;

&lt;p&gt;•Cross Browser Testing&lt;br&gt;
Cross-browser testing means testing how to perform our site on all of the web browsers, find the bug and fix it. It happens sometimes code not run the same in all of the web browsers, sometime we should add some CSS code to fix the UI. &lt;/p&gt;

&lt;p&gt;•Block Level Declarations&lt;br&gt;
For block level declarations variable should be declare with “let” or “const” , this two keyword make a variable block level. This variable can not be accessible outside the block.&lt;/p&gt;

&lt;p&gt;•Function with Default Parameter Values&lt;/p&gt;

&lt;p&gt;JavaScript Function has one default value "undefined" &lt;br&gt;
when we do multiplay or add or divided if no value provided then the default value would be undefined.&lt;br&gt;
Working with Unnamed Parameters &lt;br&gt;
Unnamed parameter use for less coding, when function parameter passed without necessarily defining each parameter individually, now passed a parameter with … is means rest of all parameter. We see it in creating Private Route using React Router Dom in React.&lt;/p&gt;

&lt;p&gt;there ...rest is the parameter.&lt;br&gt;
see it from here.  &lt;a href="https://reactrouter.com/web/example/auth-workflow"&gt;https://reactrouter.com/web/example/auth-workflow&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;•The Spread Operator&lt;br&gt;
When All elements to need from an array or object then a spread operator used.&lt;br&gt;
Example: const friends= [nazmul, murshed, hridoy, delowar, nadim, emran];&lt;/p&gt;

&lt;p&gt;Const friends2 = […frends];&lt;/p&gt;

&lt;p&gt;Console.log(friends2); // [nazmul, murshed, hridoy, delowar, nadim, emran];&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
