<?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[JavaScript Power Play - Medium]]></title>
        <description><![CDATA[This is a great opportunity for new JavaScript developers. All topics are easily explained with examples so that it seems easy even for a 10 year old child. - Medium]]></description>
        <link>https://medium.com/javascript-power-play?source=rss----84b4a0b3c426---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>JavaScript Power Play - Medium</title>
            <link>https://medium.com/javascript-power-play?source=rss----84b4a0b3c426---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 12 Nov 2026 22:42:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/javascript-power-play" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Javascript 10 Question ✌✌]]></title>
            <link>https://medium.com/javascript-power-play/js-22b58472f6f9?source=rss----84b4a0b3c426---4</link>
            <guid isPermaLink="false">https://medium.com/p/22b58472f6f9</guid>
            <dc:creator><![CDATA[Mosharofhossen]]></dc:creator>
            <pubDate>Sat, 08 May 2021 15:50:43 GMT</pubDate>
            <atom:updated>2021-05-17T20:42:41.394Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jFhykwmbV9gbz-7WWESL8Q.png" /></figure><ol><li><strong>What is the meaning of Null data type?</strong></li></ol><p>Null is nothing, the data type of null is an object. A variable with an unknown value can store Null.</p><p>NaN means for ‘Not a Number ’. Like,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*ZSMSvt9oMcAo_3WbO5Bgaw.png" /></figure><p><strong>2. Falsy value:</strong> JavaScript has some values ​​that the JavaScript compiler assumes to be false values.😒- false, 0, null, undefined, Nan, Empty String(“ ”).</p><p><strong>3. What is the difference between == and === operators?</strong></p><p>‘=’ operator is used for assigning values to a variable.</p><p>‘==’ operator is used for comparing two variables, but it ignores the datatype of the variable.</p><p>‘===’ operator is used for comparing to variables and also checks datatype and compares two values.</p><p><strong>4.Object literal in js:</strong> A JavaScript object literal is a comma-separated list of property/ attribute and method in curly braces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*JZMJPrC0wmlAjkrNdYwiuQ.png" /></figure><p>we can use a method into an object and we can call it like rect.draw(). But what if you use the property inside that function? What is this?🤦‍♂️🤦‍♂️</p><p><strong>5.how to understand the this keyword?</strong></p><p><strong>point 1-</strong> this will always refer to the object that will be used.<strong> point 2- </strong><br>If the object uses this somewhere else, it will always refer to the window object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*91c54Vhmvf_o90dJ7l5exA.png" /></figure><p>But if we use this inside an object, will the object refer? Yes, Then who will refer to the object that will be used. Follow the example of point 4.</p><p><strong>6.Bind, call, Apply:</strong> When a function is called, the this keyword always refers to the window object. But what if we want to use the object we created?<br>There are 3 methods for this. Call, Bind, Apply….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*EnjiMSUDO7U1xagmDuFp0Q.png" /></figure><p><strong>7.What is Synchronous programming?</strong></p><p>Synchronous means that you can only execute one thing at a time. (existing and occurring at the same time)-line by line execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*SfSAtrTZ99jShulfnY5UMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*BYCEiWE9Lcga6USMD7VaLQ.png" /></figure><p><strong>8.What is Asynchronous Programming?</strong></p><p>Asynchronous means that you can only execute multiple things at a time and you don’t have to finish executing the current thing in order to move on to the next one. (not existing and occurring at the same time)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*2w7XDKo-z5QtEFSssQV_4A.png" /></figure><p><strong>9.What Does V8 engine do?</strong></p><ul><li>Compile and Executes js code</li><li>Handling call stack</li><li>Handling Heap Memory for variables</li><li>Provide Data types, Operators, Objects, and Functions.</li></ul><p><strong>10. What is DOM?</strong></p><p>It just an API to interact with HTML Document and change it later on-demand. <em>With the HTML DOM, js can access and change all the elements of on HTML document. when a web page is loaded, the browser creates a DOM of the pages. The HTML DOM model is constructed as a tree of objects.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22b58472f6f9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javascript-power-play/js-22b58472f6f9">Javascript 10 Question ✌✌</a> was originally published in <a href="https://medium.com/javascript-power-play">JavaScript Power Play</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Function, Expression, Scope, Hoisting, Closure.]]></title>
            <link>https://medium.com/javascript-power-play/javascript-function-c31ef93a2c9d?source=rss----84b4a0b3c426---4</link>
            <guid isPermaLink="false">https://medium.com/p/c31ef93a2c9d</guid>
            <category><![CDATA[function-javascript]]></category>
            <category><![CDATA[javascript-for-beginners]]></category>
            <category><![CDATA[javascript-for-kids]]></category>
            <category><![CDATA[function]]></category>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[Mosharofhossen]]></dc:creator>
            <pubDate>Thu, 06 May 2021 15:16:21 GMT</pubDate>
            <atom:updated>2021-05-08T10:16:37.617Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Function:</strong> Simply said, a function is a type of machine that takes different data as input, processes the data on different logics, and gives output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BLxfirkKluO0YohIT1RiGA.png" /></figure><p>***The special advantage of the function is that it reduces code duplication.</p><p><strong>Function Declarations :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*jiD9TJtLDTPes64igYe-oQ.png" /></figure><p><strong>Function invoking:</strong> Declaring a function does not execute immediately. The function for this is to call. And this call is called function invoking. In other words, using the function is function invoking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*yiK0mitPHmIQjEosoDXXog.png" /></figure><p><strong>IIFE:</strong> A js immediately invoked function expression(IIFE) is used if you need to call immediately after creating a function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*YS0i7zdS5NyTG6_KAsPL4w.png" /></figure><p><strong>The Arguments Object:</strong> We do not know how many arguments the user will pass when calling the function, again the number of parameters to be given in the function is not fixed. To solve this problem there are argument objects. JS functions have a built-in object called the arguments of object. Change the arguments are not visible outside the function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*PcT-EASE8brRdfrJ1ToU3w.png" /></figure><p>This means that I can access the arguments sent from outside by the argument keyword inside the function.</p><p><strong>Function Expression:</strong> Expression means that evaluates to a single value from the valid set of literals, variables, operators. Like,5+ 5 =10. It is a simple expression that evaluates a single value of 10. But what is the Function Expression??</p><p>A function expression can be stored in a variable. Then you can call that variable and work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*x6tylJQw7iw3i9tvpN2iMQ.png" /></figure><p>Actually, this function is called the Anonymous function because it has no name. Here add is a variable but acts like a function. <strong>We know that Expressions always in a single value</strong>. And above function return a single value.</p><p><strong>Scoping: </strong>Scope controls where a variable is declared and where it can be accessed. In js two types of scope:</p><ol><li><strong>Local Scope-</strong> Each function creates a local scope. The variable declared in the local scope cannot be used outside that scope</li><li><strong>Global Scope- </strong>A Global variable has global Scope. Variables declared in Global Scope can be used in any scope. It can be used in a functional scope. But the variable declared in the local scope cannot be used outside that scope.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*UOjIcD9DGnzNIH3Jqluo9A.png" /></figure><p><strong>JS Hoisting:</strong> When to declare a variable, when to assign a value, when to reassign a value, when to use that variable. All of this is the job of hosting. Like, a variable can&#39;t be used after declared.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bxW860xQR1XuEprWm-QoLw.png" /></figure><p><strong>Functional Programming:</strong> The role of functional programming is to avoid shared state, mutable and side effects. When a function behaves like a value, it is called Functional Programming.</p><p>there are three main terms……..</p><ol><li>Pure functions<strong> 2</strong>. First-class functions <strong>3.</strong> Higher-order function</li></ol><p><strong>What is Pure Function?</strong></p><ul><li>** It returns the same result if given the same arguments</li><li>**It does not cause any observable side effects</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*O2hhYJjSd0PsOdQQyGJwng.png" /></figure><p>the above function is not a pure function because it modified a state<em> </em><strong><em>point.x</em></strong> and <strong><em>point.y </em></strong>outside its scope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*xaME1nZnhiK9GZTUHqSGJA.png" /></figure><p>it is a pure function. It didn&#39;t side effect the external state.</p><p><strong>What is a First-class function?</strong></p><ul><li>** A function can be stored in a variable.</li><li>** A function can be stored in an array</li><li>** A function can be stored in an object</li><li>** We can create function as need</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*tahuqyukGYBAjkEkD8PWwA.png" /></figure><p><strong>High Order function :</strong></p><ul><li>** We can pass a function as an argument.</li><li>** We can return function from another function.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*r2ITu1q_k2v2BixLmacelA.png" /></figure><blockquote><strong>Closure:</strong> If data comes from an outside scope inside a scope, then that scope is called its closure. (bahirer duniay thaka kono kichu ke carry kore/ variables that are used locally but defined in an enclosing scope)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*vgCxRysnOm6SRVioWK2kkA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*yBA3-n1Z1mAdgZ-7aKt58A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c31ef93a2c9d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javascript-power-play/javascript-function-c31ef93a2c9d">JavaScript Function, Expression, Scope, Hoisting, Closure.</a> was originally published in <a href="https://medium.com/javascript-power-play">JavaScript Power Play</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The most common uses of JavaScript Number and Math Methods]]></title>
            <link>https://medium.com/javascript-power-play/number-7852be566dd?source=rss----84b4a0b3c426---4</link>
            <guid isPermaLink="false">https://medium.com/p/7852be566dd</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-for-beginners]]></category>
            <category><![CDATA[number-method]]></category>
            <category><![CDATA[javascript-number]]></category>
            <dc:creator><![CDATA[Mosharofhossen]]></dc:creator>
            <pubDate>Wed, 05 May 2021 23:01:16 GMT</pubDate>
            <atom:updated>2021-05-06T03:12:20.439Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cQ2iiXykJXbIuE3_G0Twvw.png" /></figure><p>The number type is the primitive data type. It is defined by JavaScript. A number is a primitive object used to represent and manipulate numbers like 20 or -17.</p><p><strong>NaN property</strong>- The NaN property means Not a Number. This property indicates which value is not a pure number.</p><p><strong>isNaN()</strong> -Use the isNaN() function to check which value is NaN or Not .If the value is NaN it returns true otherwise false.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*jJd3fDgdiiPZuKlSAGY3YA.png" /></figure><p><strong>Number()</strong>- The Number() function used to convert any value to a number but if the value can not be converted to a pure number, its return NaN.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*spHPtwCTvG3aCc45fbwPAw.png" /></figure><p><strong>parseFloat()-</strong> This function parses a string and returns a floating number.<br> If the value can not be converted to a floating point, its return NaN. Some examples are given below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*D1AUXJ8lsQjldrbRaMKfzQ.png" /></figure><p><strong>parseInt()-</strong>This function parses a string and returns an integer.<br> If the value can not be converted to an integer, its return NaN. Some examples are given below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*glQZP1xtbNeTOykbBQPMwQ.png" /></figure><p><strong>Math-</strong> Math is a built-in javascript Object. It has some properties and methods for mathematical operation. Some properties and methods are given below.</p><p><strong>Math.abs()-</strong> This function returns the absolute value of a number.Like, it returns a number of n if n is positive or zero or negative otherwise it returns NaN. Only it returns 0 if you pass empty string/array/null.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*tf0drPPWyDHNhFfJkP2mmQ.png" /></figure><p><strong>Math.ceil()- </strong>Converting a decimal number to a whole integer number always returns the largest around value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*01sRHv3OKUvslh_-rgnacg.png" /></figure><p><strong>Math.floor()-</strong>Converting a decimal number to a whole integer number always returns the smallest around value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*gcGELH5HqhwqHWAA8xT_SQ.png" /></figure><p><strong>Math.min()- </strong>This function returns the lowest value from a set of numbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*qV9Fc79gx6UTUfk7w2v0-w.png" /></figure><p><strong>Math.max()- </strong>This function returns the highest value from a set of numbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*-SRW4i0nGC5JWfOHVl6k6Q.png" /></figure><p><strong>Math.random()-</strong> The random method returns a random number between 0(inclusive) and 1 (exclusive).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*zSv1UAG70JLO3-E2Ez_ebQ.png" /></figure><p><strong>Math.round()</strong>-Converting a decimal number to a whole integer number always returns a rounded value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*D3D943s56y8l8njxZbodMg.png" /></figure><p><strong>Math.sqrt()-</strong> The Math.sqrt() function returns the square root of a number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*iOj87XNRXV-6Ci0CItykfQ.png" /></figure><p><strong>Math.pow()-</strong> This function has two-parameter . It calculates the value by the way of x^y.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*Uf34ZvxkEQi4rA5OwaB0hQ.png" /></figure><pre><strong>Thanks everyone for continuing. Please follow my publication.</strong></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7852be566dd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javascript-power-play/number-7852be566dd">The most common uses of JavaScript Number and Math Methods</a> was originally published in <a href="https://medium.com/javascript-power-play">JavaScript Power Play</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The most widely used JavaScript string method]]></title>
            <link>https://medium.com/javascript-power-play/the-most-widely-used-javascript-string-method-696eea6bff31?source=rss----84b4a0b3c426---4</link>
            <guid isPermaLink="false">https://medium.com/p/696eea6bff31</guid>
            <category><![CDATA[javascript-for-beginners]]></category>
            <category><![CDATA[javascript-string-mathod]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[string]]></category>
            <category><![CDATA[javajcript-string]]></category>
            <dc:creator><![CDATA[Mosharofhossen]]></dc:creator>
            <pubDate>Wed, 05 May 2021 08:11:22 GMT</pubDate>
            <atom:updated>2021-05-05T16:19:53.036Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kCgzICyDtHTI-j2B1EQStg.png" /></figure><p>A string is any text inside a single quote or a double quote. Like “Hossen Mohammad”/ ‘Hossen Mohammad’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*2pYWfK8FTKj-4FiOWI_yGw.png" /></figure><p>Let’s get to know the ninja tricks of the most used method of JavaScript.</p><ol><li><strong>charAt()-</strong>This method returns the specific index or position of each character in the string. This means that you can find out the position of any character in the string with this method. Let’s look at an example…</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*chBDpXt7XKLAlg4OrVULxQ.png" /></figure><p><strong>2.concat()-</strong>The function of this method is to add one or more strings and return a new string. like ….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*Vlqhuj8f3ByOBhS3JnahHQ.png" /></figure><p><strong>3.includes()-</strong> The includes() method determines whether a string contains the characters of a specified string. If the characters are in the string, True returns otherwise false…..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*eWux2-daoQ3u2cag7rQ7RA.png" /></figure><p><strong>4.endsWith()-</strong> the includes() method determines whether a string ends with the characters of a specified string. If the characters are at the end of the string, True returns otherwise false….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*PIfnMrVbf17sg35IUwqP5A.png" /></figure><p><strong>5.indexOf()- T</strong>he indexOf() method returns the position of the first occurrence of a specified value in a string.<br>Note: If it does not match, then -1 return</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*PnReu_mEOevqVN0OXKs8GA.png" /></figure><p><strong>6.lastIndexOf()-</strong> The indexOf() method returns the position of the last occurrence of a specified value in a string.<br>Note: If it does not match, then -1 return.Same as indexOf() but indexOf() returns first occurrence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*JOl5c5uoCcqhgsSeywy3yQ.png" /></figure><p><strong>7.replace()- </strong>This method finds the string of a particular character and replaces it. In this case, it replaces the one with the match at the beginning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*K8CUMzaa6iz9dY7lvt3yEw.png" /></figure><p><strong>8.slice()-</strong>The slice() Method pulls out a segment from a string. And the extracted part returns as a new string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*7pBLV_9t8ccZpU5Nak3KxQ.png" /></figure><p><strong>9.split()-</strong>The split method splits a string into a substring and returns it through an array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*WcDDX_U1JSaxtrCECCTbfw.png" /></figure><p><strong>10.startsWith()-</strong>The startsWith() method returns true or false values ​​based on what character string of a string it started with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*ivjF2JZvJovugAQ2QPr9TQ.png" /></figure><p>Note: startsWith() is case sensitive</p><p><strong>11.substr()-</strong>This method is used to create another string by taking parts from one string. The first value of this method is the starting value. That is the index number from which the extraction will start. And the last value is how many characters the string will contain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*6pWHQo8QOf8lt3pMRiSbPQ.png" /></figure><p><strong>12.toLowerCase()-</strong>The toLowerCase() method converts each letter of the string to a letter in Lowercase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*ArQsfJiGVF_xVI5oD85Rbw.png" /></figure><p><strong>13.toUpperCase()-</strong>The toUpperCase() method converts each letter of the string to a letter in Uppercase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*QZGVbW13zzMGYIZIJRet4A.png" /></figure><p><strong>14.trim()-</strong>Removes white space on both sides of the string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*MFSlP9ENMDuM1rXTHk-Hbg.png" /></figure><p><strong>15.trimEnd()-</strong>Removes the white space on the right side of the string</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*AjQ4U75vTCxUVBbfUw2NwQ.png" /></figure><p><strong>16.trimStart()-</strong> Removes the white space on the left side of the string</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*vwyv4kAVnNVBIskizD8paA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=696eea6bff31" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javascript-power-play/the-most-widely-used-javascript-string-method-696eea6bff31">The most widely used JavaScript string method</a> was originally published in <a href="https://medium.com/javascript-power-play">JavaScript Power Play</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>