<?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: Rahul Ghosh</title>
    <description>The latest articles on DEV Community by Rahul Ghosh (@rahulghosh).</description>
    <link>https://dev.to/rahulghosh</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F626058%2F67069e2b-5454-47e4-a086-48de4f813afc.jpeg</url>
      <title>DEV Community: Rahul Ghosh</title>
      <link>https://dev.to/rahulghosh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rahulghosh"/>
    <language>en</language>
    <item>
      <title>Simple JS Interview Questions for All Beginners.</title>
      <dc:creator>Rahul Ghosh</dc:creator>
      <pubDate>Sat, 08 May 2021 15:36:20 +0000</pubDate>
      <link>https://dev.to/rahulghosh/10-simple-javascript-interview-questions-for-all-beginners-1ba8</link>
      <guid>https://dev.to/rahulghosh/10-simple-javascript-interview-questions-for-all-beginners-1ba8</guid>
      <description>&lt;p&gt;1 Null Vs Undefined &lt;/p&gt;

&lt;p&gt;A null means absence of a value. It means we can define a variable but have not assigned any value, so the value will be absent. &lt;br&gt;
Otherside, Undefined is also a primitive value in JavaScript.  A variable or an object has an undefined, when we have no value is assigned before we use it. &lt;/p&gt;

&lt;p&gt;2 double equal (==) and triple equal (===) in javascript.&lt;/p&gt;

&lt;p&gt;Double equals use for value equality. This means that before checking the values, it converts the types of the variables to match each other.&lt;br&gt;
Triple equals do not perform type coercion. It will verify whether the variables compared have both the same value and the same type.&lt;/p&gt;

&lt;p&gt;3 global variable, global scope&lt;/p&gt;

&lt;p&gt;In JavaScript, there are two types of scope. Local scope Global scope. When variables are declared within a JavaScript function, it’s called local scope. In local scope, variables are only used only inside their functions&lt;br&gt;
A variable declared outside a function, its called global scope. All other scripts and functions can access these global scope variables.&lt;/p&gt;

&lt;p&gt;4  call(), apply() and bind() method&lt;/p&gt;

&lt;p&gt;As functions are also objects in JavaScript, call(), apply() and bind() are used to control the function invocation. You can use call() or apply() to invoke the function immediately. bind() returns a bound function. So bind() can be used when the function needs to be called later.&lt;/p&gt;

&lt;p&gt;5 let and const&lt;/p&gt;

&lt;p&gt;ES6 introduced two new types of variable declarations in JavaScript.The keywords let and const. The let declarations is the same syntax as var declarations. Unlike variables declared with var, variables declared with let have a block-scope. let does not create any global property on the window. let reassignable and not redeclare.&lt;br&gt;
Const is similar to var or let declarations. The const makes a variable a constant where its value cannot be changed. Const variables have the same scoping rules as let variables.&lt;/p&gt;

&lt;p&gt;6 Arrow Function&lt;/p&gt;

&lt;p&gt;In ES6, introduced us to write shorter function syntax which is Arrow functions. It allows us to create functions in a cleaner way similar to regular functions.&lt;br&gt;
&lt;a href="https://media2.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%2F3gdg2tsbbnicoqvo0fq3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2F3gdg2tsbbnicoqvo0fq3.png" alt="image1" width="688" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7  DOM &lt;/p&gt;

&lt;p&gt;DOM means Document Object Model. DOM is use for programming interface for HTML and XML documents. The DOM represents a document as a tree of nodes. The DOM is cross-platform and language-independent ways of manipulating DOM tree.&lt;/p&gt;

&lt;p&gt;8 API&lt;/p&gt;

&lt;p&gt;API means Application Programming Interface. An API is a set of functions that allows applications to access data and interact with external software components, operating systems, or microservices. &lt;/p&gt;

&lt;p&gt;9 callback function&lt;/p&gt;

&lt;p&gt;JavaScript runs code sequentially in top-down order. The way to create a callback function is to pass it as a parameter to another function, and then to call it back right after something has happened or some task is completed.&lt;/p&gt;

&lt;p&gt;10  This keyword&lt;/p&gt;

&lt;p&gt;In Javascript, this keyword is an important confusing keyword. In an object method, this refers to the owner of the method. It has different values depending on where it is used. This points to a particular object. Now, which is that object depends on how a function that includes 'this' keyword is being called.&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>React.js primary concepts for beginner.</title>
      <dc:creator>Rahul Ghosh</dc:creator>
      <pubDate>Fri, 07 May 2021 11:53:07 +0000</pubDate>
      <link>https://dev.to/rahulghosh/react-js-primary-concepts-odo</link>
      <guid>https://dev.to/rahulghosh/react-js-primary-concepts-odo</guid>
      <description>&lt;p&gt;1 What is React...?&lt;/p&gt;

&lt;p&gt;React is a JavaScript library, not a framework. React is use for building user interface. React use more libraries for any solution.&lt;br&gt;
Frameworks use for great purpose,  especially for young developers. Framework already has smart design for you. When you need small piece of code, you have to include the whole thing anyway. UIs are everywhere, from the simple buttons on a microwave to the dashboard of a space shuttle. React is good for developed UI. React have virtual DOM, thats why react is best for modern developer.&lt;/p&gt;

&lt;p&gt;2 React JSX &lt;/p&gt;

&lt;p&gt;JSX means Javascript and XML. JSX allows us to write HTML in React. JSX makes it easier to write and add HTML in React. It is faster because it performs optimization while compiling code to JavaScript. It is also type-safe and most of the errors can be caught during compilation. JSX easier and faster to write templates, if you are familiar with HTML.&lt;/p&gt;

&lt;p&gt;3 React is all about components&lt;/p&gt;

&lt;p&gt;In react everythings are component base. React has two type of component one is class component another is functional component. Component are small piece of reusable, composable, and stateful codes. React components are exactly the same; their input is a set of props and their output is a description of a UI. We can reuse a single component in multiple UIs. Components can contain other components. React component can have a private state. Those state to hold data. This private state is an implicit part of the input that drives the component’s output.&lt;/p&gt;

&lt;p&gt;4 React DOM &lt;/p&gt;

&lt;p&gt;React DOM means Document Object Model. In react has a virtual DOM. A virtual DOM object is a representation of a DOM object, like a lightweight copy. Manipulating the DOM is slow. Manipulating the virtual DOM is much faster, because nothing gets drawn onscreen. Think of manipulating the virtual DOM as editing a blueprint, as opposed to moving rooms in an actual house.&lt;/p&gt;

&lt;p&gt;5 React defaultProps&lt;/p&gt;

&lt;p&gt;React components take inputs in the props argument. Then passed down from the Parent component. The child component will access them from the props object with the attribute name serving as the key. The problem here is what happens if the parent component doesn’t pass any attributes to the child component? Sure we will see undefined display in place of the props not sent by the parent component. To solve this issue, we can use the logical operator to set a fallback value, so when a prop is missing it displays the fallback value in place of the missing prop. &lt;/p&gt;

&lt;p&gt;6 React optimizing Performance&lt;/p&gt;

&lt;p&gt;Performance is important for any project. Clients wants their application have too much faster. Thats why's react is much concern of performacne. If you’re faceing performance problems in your React apps,  make sure you’re test.  React includes many helpful warnings. These warnings are very useful in development. You can read this warning and find the problem easily&lt;/p&gt;

&lt;p&gt;7 React State&lt;/p&gt;

&lt;p&gt;React has a built-in state object. Where store property and values that belongs to the component. When the state changes, the component will be re-renders. State contain as many properties. You can changes the state values by setState function. Always use the setState() method to change the state values, it will ensure that the component knows its been updated.After that it calls the render() method again,&lt;/p&gt;

&lt;p&gt;8 Conditional rendering&lt;/p&gt;

&lt;p&gt;In JSX when we thing conditional rendering, Ternary operator come out first in oor mind. In conditional rendering ternary operator vary helpful to us, its give two value depend on true false condition.&lt;/p&gt;

&lt;p&gt;9 How rendering works&lt;/p&gt;

&lt;p&gt;Every setState function call react state to change new State. Then react call render method to update the components in memory (DOM). Raect compares it with browser. If there are any changes, React does the smallest possible update to the DOM.&lt;/p&gt;

&lt;p&gt;10 Raect props&lt;/p&gt;

&lt;p&gt;Props means property. Props are used for passing data from one component to another. Parent component pass values to children using props.&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>10 Basic Topic For Beginner JS programmer.</title>
      <dc:creator>Rahul Ghosh</dc:creator>
      <pubDate>Thu, 06 May 2021 15:30:07 +0000</pubDate>
      <link>https://dev.to/rahulghosh/10-basic-topic-for-beginner-js-programmer-3f3e</link>
      <guid>https://dev.to/rahulghosh/10-basic-topic-for-beginner-js-programmer-3f3e</guid>
      <description>&lt;p&gt;1 Types of Javascript&lt;/p&gt;

&lt;p&gt;JavaScript has data types. In the programming world, data types are an important concept. Actually, javascript differ their type in two way “Primitive Values” and “Object”&lt;/p&gt;

&lt;p&gt;Some primitive data type is&lt;/p&gt;

&lt;p&gt;i strings​&lt;br&gt;
ii number&lt;br&gt;
iii boolean&lt;br&gt;
iv undefine &lt;br&gt;
v null&lt;/p&gt;

&lt;p&gt;Object are &lt;br&gt;
i object&lt;br&gt;
ii function&lt;/p&gt;

&lt;p&gt;2 What we do when errors happen!!!&lt;/p&gt;

&lt;p&gt;Sometimes when executing JavaScript code, different errors can occur. So what do we do?&lt;br&gt;
Javascript have a special error handler TRY and CATCH&lt;br&gt;
&lt;a href="https://media2.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%2Fu44fw23qzwhk0p081hpq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fu44fw23qzwhk0p081hpq.png" alt="1img" width="800" height="538"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The ‘try’ statement checks the block of code to be tested for errors while it is being executed and if an error occurs in the try block the ‘catch’ statement catches the block of code to be executed.&lt;/p&gt;

&lt;p&gt;3  Coding Style for every programmer&lt;/p&gt;

&lt;p&gt;Make sure to always use the same coding style in your projects. Use camelCase for identifier names in variables. It's a good variable name that starts with letters.&lt;br&gt;
&lt;a href="https://media2.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%2Fmhl7xykhi782i46wl3h6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fmhl7xykhi782i46wl3h6.png" alt="2img" width="620" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For functions : &lt;br&gt;
Put the opening bracket at the end of the first line. Use one space before the opening bracket. Put the closing bracket on a new line, without leading spaces. Do not end a complex statement with a semicolon.&lt;/p&gt;

&lt;p&gt;For Object :&lt;br&gt;
Place the opening bracket on the same line as the object name. Use colon plus one space between each property and its value. Use quotes around string values, not around numeric values. Do not add a comma after the last property-value pair. Place the closing bracket on a new line, without leading spaces. Always end an object definition with a semicolon.&lt;/p&gt;

&lt;p&gt;4  Comment&lt;/p&gt;

&lt;p&gt;JavaScript comments are useful to explain code and to make it more readable.&lt;br&gt;
It can be written two ways single line comment and multi-line comment&lt;br&gt;
&lt;a href="https://media2.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%2Fw1jrjet0pufudhbvdywv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fw1jrjet0pufudhbvdywv.png" alt="3img" width="672" height="408"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.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%2F2mnz3hprwuoff592pzxb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2F2mnz3hprwuoff592pzxb.png" alt="4img" width="620" height="552"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5 Arrow Function&lt;/p&gt;

&lt;p&gt;We are familiar with arrow functions in ES6. Arrow functions make it easier to write shorter syntax. Modern programmers used to like it. If you check today's date by arrow function to write.&lt;br&gt;
&lt;a href="https://media2.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%2Fvm31b46wrtsrkcjtod53.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fvm31b46wrtsrkcjtod53.png" alt="5img" width="756" height="516"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6 Spread Syntax (...)&lt;/p&gt;

&lt;p&gt;The spread syntax can be used when all elements from an object or array need to be included in a list of some kind. It is much easier to include all previous items or lists them into a new array or object.&lt;br&gt;
&lt;a href="https://media2.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%2Fbmfyi8bx7n7ij7xkwc0d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fbmfyi8bx7n7ij7xkwc0d.png" alt="6img" width="800" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7 `Default Parameters of functions&lt;/p&gt;

&lt;p&gt;Sometimes we have a situation where we find undefined value in our output.  In JavaScript, default function parameters are solved to initialize named parameters with default values if no values or undefined are passed into the function.&lt;br&gt;
&lt;a href="https://media2.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%2Fowzitfmfp7xibscu6kvo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fowzitfmfp7xibscu6kvo.png" alt="7Img" width="800" height="549"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;8  JavaScript Hoisting&lt;/p&gt;

&lt;p&gt;Variable hoisting plays an important role in programmer life. Actually, a beginner programmer faces too much when writing code.  Hoisting is JavaScript's default behavior of moving all declarations to the top of the current scope. the variable can be declared after it has been used. Another side a variable can be used before it has been declared.&lt;br&gt;
&lt;a href="https://media2.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%2Fqstl77l08lqeen3mhj5k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fqstl77l08lqeen3mhj5k.png" alt="8img" width="436" height="444"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.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%2F0vjq6fs51i1qgvwzpm3d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2F0vjq6fs51i1qgvwzpm3d.png" alt="9img" width="436" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;9 ES6 Symbol data type &lt;/p&gt;

&lt;p&gt;The symbol is a primitive datatype just like Number, String, or Boolean.  Symbols are always unique. For instance, if different coders want to add a person.id property to a person object belonging to a third-party code, they could mix each other's values.&lt;/p&gt;

&lt;p&gt;10 cross-browser testing&lt;/p&gt;

&lt;p&gt;Sometimes a developer needs to test the project on various platforms to check how to run the project. If A developer develops a web application first and needs to test various browsers. If it works well after that it's definitely works for the real world.&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>Some Regular JavaScript Methods for JS Developers...</title>
      <dc:creator>Rahul Ghosh</dc:creator>
      <pubDate>Wed, 05 May 2021 15:38:13 +0000</pubDate>
      <link>https://dev.to/rahulghosh/some-regular-javascript-methods-for-js-developers-2m0h</link>
      <guid>https://dev.to/rahulghosh/some-regular-javascript-methods-for-js-developers-2m0h</guid>
      <description>&lt;p&gt;Use of extracting string method&lt;/p&gt;

&lt;p&gt;1 slice(start, end) Method&lt;br&gt;
&lt;a href="https://media2.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%2Fdza27pwrnimbji8uo05c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fdza27pwrnimbji8uo05c.png" alt="1Slice" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Slice method takes two parameters, the first one where the extract starts position, and the last one extract end position.  The Slice method is used when some specific string is extracted in a string. If a parameter is negative, the position is counted from the end of the string. If you do not use the second parameter, the result will slice out the rest of the string. Slice can accept negative indexes.&lt;/p&gt;

&lt;p&gt;2.substring(start, end) Method&lt;br&gt;
&lt;a href="https://media2.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%2Fto11kdmmk98l2c01xzec.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fto11kdmmk98l2c01xzec.png" alt="3subStr" width="800" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;substring() is the same to slice() Method. The difference between substring() cannot accept negative indexes. This method also has two parameters first one is extracted start positions and the last one is extracted end position.&lt;/p&gt;

&lt;p&gt;3 substr(start, length) Method&lt;br&gt;
&lt;a href="https://media2.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%2Fu10d5rg3xnrmnzmzhl26.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fu10d5rg3xnrmnzmzhl26.png" alt="3subStr" width="800" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;substr() is also the same as slice() But the difference is that the second parameter specifies the length of the extracted part. If you omit the last parameter, the result will slice out the rest of the string.&lt;/p&gt;

&lt;p&gt;Use of number method&lt;/p&gt;

&lt;p&gt;4 parseInt() Method&lt;br&gt;
&lt;a href="https://media2.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%2F8mpfhr3fbzjburcq5hsk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2F8mpfhr3fbzjburcq5hsk.png" alt="4parseInt" width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The parseInt() method parses a string. This method returns a whole number. These method spaces are allowed. Only the first number is returned.&lt;/p&gt;

&lt;p&gt;5 parseFloat() Method&lt;br&gt;
&lt;a href="https://media2.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%2Fce6aa4ip7x6dm77ee4r2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fce6aa4ip7x6dm77ee4r2.png" alt="5parseFloat" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The parseFloat() method converts strings to numbers. If the number cannot be converted, NaN (Not a Number) is returned. This method is used in regular needs.&lt;/p&gt;

&lt;p&gt;Use of Math method&lt;/p&gt;

&lt;p&gt;6 Math.abs() Method&lt;br&gt;
&lt;a href="https://media2.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%2Fkqvbxz1jtblpel7c1r9x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fkqvbxz1jtblpel7c1r9x.png" alt="6abs" width="638" height="516"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Math.abs() returns the absolute (positive) value of x . When you need a positive value from a negative number it is a helpful method for a developer.&lt;/p&gt;

&lt;p&gt;7 Math.pow() Method&lt;br&gt;
&lt;a href="https://media2.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%2F9opgo4hwlgz05ymzner0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2F9opgo4hwlgz05ymzner0.png" alt="7pow" width="654" height="516"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Math.pow(x, y) returns the value of x to the power of y. This is a built-in method in Javascript Math. &lt;/p&gt;

&lt;p&gt;Use of array method&lt;/p&gt;

&lt;p&gt;8 Pop() method&lt;br&gt;
&lt;a href="https://media2.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%2F78hmweigod53uyj1mc8f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2F78hmweigod53uyj1mc8f.png" alt="8pop" width="800" height="351"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Array in js plays an important role in development. Pop() is a built-in method of javascript. The pop() method removes the last element from an array. This is a method of the array.&lt;/p&gt;

&lt;p&gt;9 Push() method&lt;br&gt;
&lt;a href="https://media2.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%2Fmuxbe11dyc6f2o13l3zy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fmuxbe11dyc6f2o13l3zy.png" alt="9push" width="800" height="314"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sometimes we need to add some items in an array, so what we do that time! The push() method adds a new element at the end to an array. This method returns the new array length.&lt;/p&gt;

&lt;p&gt;10 shift() method &lt;br&gt;
&lt;a href="https://media2.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%2F1ik836no1n0en7dh1hzf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2F1ik836no1n0en7dh1hzf.png" alt="10shift" width="800" height="326"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The shift() method removes the first array element and "shifts" all other elements to a lower index. This array method is similar to pop() but different from removing item position. &lt;/p&gt;

</description>
      <category>math</category>
      <category>array</category>
      <category>string</category>
      <category>number</category>
    </item>
  </channel>
</rss>
