<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Murad theOZ on Medium]]></title>
        <description><![CDATA[Stories by Murad theOZ on Medium]]></description>
        <link>https://medium.com/@muradahmed199771?source=rss-b32e8d8c73ba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CcHdhg0TQ-HrKZir.</url>
            <title>Stories by Murad theOZ on Medium</title>
            <link>https://medium.com/@muradahmed199771?source=rss-b32e8d8c73ba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:34:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muradahmed199771/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[10 Tricky things a javascript developer should know]]></title>
            <link>https://muradahmed199771.medium.com/10-tricky-things-a-javascript-developer-should-know-c4f6cf402b8?source=rss-b32e8d8c73ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4f6cf402b8</guid>
            <category><![CDATA[mern-stack]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Murad theOZ]]></dc:creator>
            <pubDate>Mon, 17 May 2021 07:13:33 GMT</pubDate>
            <atom:updated>2021-06-03T08:08:32.391Z</atom:updated>
            <content:encoded><![CDATA[<h3>1.Truthy &amp; Falsy</h3><p>Let’s see which things are considered as true &amp; which are considered as false in JavaScript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/36/0*TV4vOISFOw-wyUZe" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/0*tVW3vSHKX2ghZvYz.png" /></figure><p>We know that it will go inside the if block when the first condition fulfills its criteria if block that means it’s true. We can see that in our code the first condition is true. Without that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/32/0*mng2e3YKUq3Pm0Yc" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/0*rNwzBLzQWWKqKmrf.png" /></figure><p>In JavaScript, without 0 any kind of number if-else consumes it as true. Any kind of string is also true by default except the empty string “empty string is false.</p><p>Undefined by default false.</p><p>There are some example of truthy and falsy</p><p><strong>List of Truthy: </strong>‘0’ it’s not 0, this is side a string that’s, white space string “ ”, [], {}, “false”, truth</p><p><strong>List of Falsy : </strong>0, “, Undefined, null, NAN, false.</p><h3>2. Null</h3><p>Null means not existing. Or we can also say that once upon a time there is value, but now it had been empty.</p><h3>3. Undefined</h3><p>Undefined variables are those that are declared in the program but have not been given any value. If the program tries to read the value of an undefined variable, an undefined value is returned.</p><h3>4.Clouser</h3><p>Let’s try to make it easy to understand with an example suppose two friend summary &amp; alif went to the restaurant they order one bowl of beef curry. The waiter now starts to serve at first alif waiter serve 1 piece beef to him then serve summary 2 pieces of beef we can see that the beef cooked from the same kitchen and serve from the same bowl but when it served its count individually that who takes how many piece individuals that is the closed environment.</p><p>In the same way when inside a function there another function that exists &amp; once it is called by x then it will count this way count call me 1 time &amp; then Y calls that function 2 time it will count that Y call me 2 times. Again X calls the function it will count that X calls him 2 times previous 1 &amp; right now 1 total 2.</p><h3>5.Scopes</h3><p>The scope of a variable is the region of your program in which it is defined. JavaScript variable will have only two scopes.</p><p><strong>Global Scope</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/44/0*QXkqCRCYfklSV8mx" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/0*S9MoaRfiwOLVnOs3.png" /></figure><p>Global scope means that you can access that variable from anywhere in your JS code if you declare any variable outside of any block.</p><p><strong>Local Scope</strong></p><p>Local scope means that you can’t use that variable outside that function if you declare any variable inside any function. If you want to use that local variable, you have to use it inside the function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/56/0*MwZOKlKow3hLQRmW" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/0*pb0UEP63saUWEgBy.png" /></figure><h3>6.JavaScript’s Data Type</h3><p><strong>I.</strong>Number</p><p><strong>II.</strong>String</p><p><strong>III.</strong>Boolean</p><p><strong>IV.</strong>Object</p><p><strong>V.</strong>Undefined</p><h3>7. Double Equal(==) vs Triple Equal (===)</h3><p>When you use double equal in JavaScript it will check either the two values are equal or not. But when you use triple equal in JS it will check not only check that values are equal or not it also check that two value’s data type also equal or not.</p><h3>8.Call()</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/60/0*oxMt2m9WD7tq7gC7" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/0*JFvDdXEzkpijrzQr.png" /></figure><p>In a call method, we can send arguments with the object.</p><h3>9.Apply()</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/60/0*M8ppjI4BpHc1BAAo" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/0*Tt4_6i6RZ1kHR9MA.png" /></figure><p>Apply method is similar to the call method. But the difference is when we send arguments with the object in the apply method we have to send the arguments inside an array.</p><h3>10.JavaScript</h3><p>JavaScript is a single thread language that reads the code &amp; executes the code in a synchronized way. Like in a restaurant there are two customer waiter go to the first one and take order go to the kitchen passed the order to the chief &amp; wait for the food at that meantime the second customer is waiting after complete the food waiter serve that the first customer after that he goes to the second customer to take the order.</p><h3><a href="https://rahatminhaj444.medium.com/?source=post_sidebar--------------------------post_sidebar-----------">Minhajul Abedin Rahat</a></h3><p>I’m so ambitious &amp; determined about my goal &amp; strongly believe in positivity.</p><p>Follow</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4f6cf402b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Javascript web developer should use react library]]></title>
            <link>https://muradahmed199771.medium.com/why-javascript-web-developer-should-use-react-library-9628847fb719?source=rss-b32e8d8c73ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/9628847fb719</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Murad theOZ]]></dc:creator>
            <pubDate>Mon, 17 May 2021 07:02:56 GMT</pubDate>
            <atom:updated>2021-05-17T10:06:48.913Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I will tell you 10 reasons why a javascript web developer should use react. There are many reasons to use react in web development. In this story, you will find the most appealing reason to use react.</p><ol><li><strong>Do not use a heavy framework use a library to get what you need on-demand:</strong></li></ol><p>When you compare between library and framework, you can easily distinguish the difference between those things. The framework has its own presets. For using a framework, you have to include all of its functionality in your code you want it or not.</p><p>On the other hand, the library keeps its all thing in it. You use what you need on-demand. Suppose you need a Button on your project. Just import Button from react. That&#39;s how it makes your website lightfast, giving things on-demand.</p><p>2.<strong> Virtual DOM(document object modeling):</strong></p><p>Virtual DOM is one of the best things react gives you. When you normally write code in HTML, you work with the browser DOM API which is problematic when you want to update a value from the page. When you want to update a single value, it updates the whole page, and before updating, the user can&#39;t interact with the page. On the other hand, react keeps its own virtual DOM of the main UI, then when you update something, react virtual dom compare with the previous dom and update the page where it&#39;s needed. It didn’t hold the whole page for updating to interact with other parts of the website. For this reason, website loading time also gets reduced.</p><p><strong>3. React is Component-based:</strong></p><p>Another interesting about react is. It makes a website with a small or large reusable component. That means you can use one of your component in many pages without rewriting them as an example:</p><p>The footer part of the website remains the same for all of the pages, so you can make the footer component one time and use the component as many pages you want.</p><p><strong>4. No hassle of class; use the function:</strong></p><p>In javascript, Class was a little bit confusing. People were easily confused by this keyword. In react, when you make a component, you don’t have to use class. You can use the javascript function to make a component. Which is a great thing to take into your consideration to use react in making a web app.</p><p><strong>5. React hooks:</strong></p><p>React hook is a special type of function that helps you make your website easily and gives you the ability to make stateful logic handle the effects.</p><p>One of the hooks is useState which helps you store value in the state to reuse it next time. useState takes one value and a function. Works of function inside the useState are to change the value of state and update it in UI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9628847fb719" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Javascript Fundamentals You need to know.]]></title>
            <link>https://muradahmed199771.medium.com/fundamental-topics-of-javascript-eed506905fd6?source=rss-b32e8d8c73ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/eed506905fd6</guid>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Murad theOZ]]></dc:creator>
            <pubDate>Sat, 15 May 2021 19:08:40 GMT</pubDate>
            <atom:updated>2021-05-16T07:02:16.841Z</atom:updated>
            <content:encoded><![CDATA[<h4>1.start with primitive types of javascript:</h4><p>There are 7 primitive data types in javascript. These are string, number, bigint, boolean, undefined, symbol, and null.</p><p>Now, what is meant by primitive type? A primitive type is those values that you can’t alter directly. If you want to change a value of the primitive type, you have to reassign a new value.</p><p>Here what you can do with primitive value and what can’t</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3402ac35a8f1f610cc647484c92b4089/href">https://medium.com/media/3402ac35a8f1f610cc647484c92b4089/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2qTNw-aMZTkdZgNKkY4tsg.png" /></figure><h4>2.Object and function values:</h4><p>object and function are not primitive types of values because we can alter them directly from the code. Let&#39;s say you made an array that has a list of five friend’s names. After a few days later, you got to new friends and want to add to the list? What will you do? An array is an object so that you can alter it directly. Below is the code that explains how you can add those two friends directly to the previous array.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b1fea020eab061c20b4ab9000de849d7/href">https://medium.com/media/b1fea020eab061c20b4ab9000de849d7/href</a></iframe><h4>3.Javascript Expression:</h4><p>It’s one of the core things of every programming language. It gives life to the language. Expression takes two or more values. After that, it processed those values and returns them as a single value.</p><p>below are the example of javascript expression</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4fb7be7d79ddd9aeda14265b1953a68b/href">https://medium.com/media/4fb7be7d79ddd9aeda14265b1953a68b/href</a></iframe><h4>4. Type Of:</h4><p>One more basic and interesting thing about javascript is typeof. It checks the type of input given by the user or written by the developer. It has many practical uses; one of them is input field validation. If a user mistakenly puts a field empty or gives a different type of value, we can find the user to give the correct type of value.</p><p>Example: User asked to give his/her age in the input field, but user mistakenly gave his name on that field! Here name is string type and age is number type, in that case, we can give an alert to the user to give the correct value, and as long as the user didn’t give the correct value code will keep asking the user to give the right value,</p><p>Example in code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/63729741db0370d29397e4b0b2267ff7/href">https://medium.com/media/63729741db0370d29397e4b0b2267ff7/href</a></iframe><h4>5. Try-Catch(lifesaver)</h4><p>It doesn’t matter how you are in programming; you can’t guarantee that your code will not throw an error. It happens for many reasons such as wrong code, wrong user response or failure to connect with database, etc.</p><p>When code gives errors, try-catch helps to give the error feedback instead of killing the code.</p><p>Three things you should know about try and catch</p><ol><li>It executes in runtimes only.</li><li>It can&#39;t solve syntactical errors.</li><li>It can’t solve a code if it’s scheduled.</li></ol><p>below is an example of try-catch</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a2337370c5068b27530d2cb742c13b6f/href">https://medium.com/media/a2337370c5068b27530d2cb742c13b6f/href</a></iframe><h4>6. Cross browsing testing:</h4><p>it’s important that a developer will run a cross browsing test for his codebase. Because there is some difference from one browser to another and older version browser to newer, If a website can’t run in most of the browser then it’s not really practical.</p><p>Now Should you have to test for all of the browsers that exist? No, absolutely not because there are hundreds of thousands of browsers available on the internet and you can’t test for all of them. What you can do is you can test for a few common browsers to test the code.</p><h4>7. Spread operator (Magical one):</h4><p>Spread operator helps to copy a whole array or object and then add one or more value with it easily. It’s used most of the time when we want to add value to an object.</p><p><strong>example:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/80445e971d415926e63b7471d345894f/href">https://medium.com/media/80445e971d415926e63b7471d345894f/href</a></iframe><p><strong>8.Block-level element, var variable!</strong></p><p>var is a flexible variable in javascript, it’s a leaker variable means, it can leak its value from block-level element to the global stage which can cause changing of global value.</p><p>example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/63b04797545edacb35596ec04c085ab0/href">https://medium.com/media/63b04797545edacb35596ec04c085ab0/href</a></iframe><p><strong>9. Block-level element, const variable:</strong></p><p>As we know const is a strict type, we can’t redeclare one const again. But at the block level, we know that the block-level element doesn&#39;t give value outside of the scope or make conflict with a global variable. So we can redeclare a const variable in global and local scope simultaneously</p><p>Example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a7e513064ea8b134284091b47b01438/href">https://medium.com/media/8a7e513064ea8b134284091b47b01438/href</a></iframe><p><strong>10.Block-level element, let variable!</strong></p><p>let is a flexible variable in javascript, it doesn’t leak its scope value to the global variable. And it’s not a strict type so we can redeclare the same variable again in block level and two of the let variable keep their own value.</p><p>example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7dd1e690a0e9256bce6a72f66469fae1/href">https://medium.com/media/7dd1e690a0e9256bce6a72f66469fae1/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eed506905fd6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Math methods we use in everyday programming explained]]></title>
            <link>https://muradahmed199771.medium.com/10-math-methods-we-use-in-everyday-programming-explained-4383ecd47de3?source=rss-b32e8d8c73ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/4383ecd47de3</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[math-floor]]></category>
            <category><![CDATA[javascript-math-function]]></category>
            <category><![CDATA[math-function]]></category>
            <dc:creator><![CDATA[Murad theOZ]]></dc:creator>
            <pubDate>Wed, 05 May 2021 17:02:57 GMT</pubDate>
            <atom:updated>2021-05-05T17:02:57.282Z</atom:updated>
            <content:encoded><![CDATA[<h4>1.Math.abs(x)</h4><p>We use Math.abs when we want to get positive value from whatever value entered.</p><p>Like if we enter value |-2| it will give the output = 2</p><h4>2.Math.round(x)</h4><p>We use Math.round when we want to round a float value to its nearest integer value.</p><p>Given example:</p><p>If we round 2.70 it will give the result =3 cause it’s nearest to the integer 3</p><p>If we round 2.31 it will give the result = 2 cause it’s nearest to integer 2.</p><h4>3.Math.ceil(x)</h4><p>we use Math.ceil(x) when we want to change value like ceiling or top point.</p><p>For example if we ceil Math.ceil(2.10) it will give result 3.</p><h4>4.Math.floor(x)</h4><p>we use math.floor(x) when we want the lowest possible nearest integer. If we give a value x it will return x or less then x but it will not return more then x.</p><p>Example: 2.78, Math.floor(2.78) it will return 2.</p><h4>5.Math.random(x)</h4><p>we use math.random(x) to generate when we want to generate a random number it is normally Between 0 to 1 but we can get any range multiple the number we get.</p><p>Exmaple:</p><p>Math.random()*100</p><p>= 85.45</p><p>Math.random()*100</p><p>= 70</p><p>as I said, it will always give random number.</p><h4>6.Math.pow(x,y)</h4><p>This function simply returns the value of x^y</p><p>Example: Math.pow(2,3) = 8, here this result comes from 2³ = 8,</p><h4>7.Math.sqrt(x)</h4><p>This function is used to return the sqrt value of x</p><p>Example: Math.sqrt(16) will give the the root value of 16 which is 4</p><h4>8.Math.trunc(x)</h4><p>This function is similar to the function math.floor(x). this function removes the fractional point from a floating number and return the integer value.</p><p>Example: Math.trunc(10.62838) = 10.</p><h4>9.Math.log(x)</h4><p>This function simply returns the logarithm value of given number.</p><p>Example: Math.log(10) = 1</p><h4>10. Math.exp(x)</h4><p>This function return the exponential value of x.</p><p>If you wonder what is exponential. Exponential is eular constant which approximate value is : 2.718</p><p>Example: Math.exp(3) = 8.154</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4383ecd47de3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>