<?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 Shivaraj Patil on Medium]]></title>
        <description><![CDATA[Stories by Shivaraj Patil on Medium]]></description>
        <link>https://medium.com/@shivarajpatil7733?source=rss-1aa27c47338c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5DYcrekvg8uKMUOj7hUpFA.jpeg</url>
            <title>Stories by Shivaraj Patil on Medium</title>
            <link>https://medium.com/@shivarajpatil7733?source=rss-1aa27c47338c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 23:11:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shivarajpatil7733/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[Hello…! This article is for beginners.]]></title>
            <link>https://medium.com/@shivarajpatil7733/hello-this-article-is-for-beginners-a5efe4388a4b?source=rss-1aa27c47338c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5efe4388a4b</guid>
            <category><![CDATA[datatypes-in-javascript]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Shivaraj Patil]]></dc:creator>
            <pubDate>Fri, 14 Aug 2020 10:50:48 GMT</pubDate>
            <atom:updated>2020-08-14T10:50:48.533Z</atom:updated>
            <content:encoded><![CDATA[<h3>Basics of JavaScript Datatypes</h3><p>Hello…! This article is for beginners. Lets take a look to basics of datatype in JavaScript.By the end of this article,you will get knowledge about datatypes in JavaScript.</p><p>Firstly, an small Introduction to JavaScript.</p><p><strong>What is JavaScript?</strong><br>JavaScript is scripting or programming language,that actually allows us to add an advanced and complex features on web pages or websites. JavaScript is dynamic in nature(Dynamic in the sense values can be changed at runtime).</p><p><strong>Data types in JavaScript</strong></p><ol><li>String</li><li>Number</li><li>Boolean</li></ol><p><strong>String</strong><br>The series or group of characters which are enclosed or written in between(“ “)double quotes,as well as single quote(‘ ‘)can be said as String. String is a datatype which stores an text form of data. Strings are not limited, strings can have letters,numbers and symbols are also acceptable. The quotes(single and double)are one which defines the value is String.</p><p>Example:</p><pre>1.var name = ‘shivraj’;//deacration and assigened<br> 2.console.log(typeof name);<br> 3.console.log(name);</pre><p>Here,in above example for explanation we have used numbers(1,2,3)the very first line we have declared as an variable <em>name </em>using <em>var </em>keyword. An name variable initialized an value which is string(‘<em>shivraj</em>’). On second line we checking an type of variable <em>name</em>. At last 3rd line in code we are trying to display the string stored in variable <em>name</em>.</p><p>Note: typeof is an operator through which we can identified the type of variable.</p><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*Nh_X4fAwacN6zQnrDAEaNQ.png" /></figure><p>By referring above example, we can see in output we got the ‘<em>string</em>’ as a typeof for declared variable <em>name</em>. And we get the value for variable <em>name </em>as ‘<em>shivraj</em>’.</p><p><strong>Number</strong><br> The number can be any decimal value from 0 to 9. Numbers store numeric value.In JavaScript numbers can be with written without decimal point and with decimal point as well with same datatype.</p><p>Example:</p><p>Number with decimal point.</p><pre>1.var number = 19.5<br> 2.console.log(typeof number);// number<br> 3.console.log(number);</pre><p>Variable number having value <em>19.5 </em>which is with decimal point. Second and third line are same as mentioned above for checking type of variable and displaying the value stored in variable.</p><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*aIPUbWc3HSabbXXG98xpiw.png" /></figure><p>As we can see the typeof returns the value as <em>number </em>and the number is <em>19.5 </em>with decimal point.</p><p>Number without decimal point.</p><pre>1.var age = 19;<br> 2.console.log(typeof age);// number<br> 3.console.log(age);</pre><p>Variable number having value <em>19 </em>which is without decimal number. Second and third line are same as mentioned above for checking type of variable and displaying the value stored in variable.</p><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*ukRjseEUQPQNiVYF6QaW4A.png" /></figure><p>As we can see the typeof returns the value as <em>number </em>and the number is <em>19</em>.</p><p><strong>Boolean</strong><br> The boolean datatype is datatype which has two possible outcomes out of it. The two possible outcomes are truth data which are true and false. Boolean is used to make decisions for expressions.</p><p>Example:</p><pre>1.var ageIsGreaterThan;<br> 2.ageIsGreaterThan = age &lt; 20; //expression gives boolean value<br> 3.console.log(typeof ageIsGreaterThan);<br> 4.console.log(ageIsGreaterThan);</pre><p>Note;The second line variable <em>age </em>is taken from above example of number without decimal.</p><p>Referring above example declared variable <em>ageIsGreaterThan</em>. . Third and fourth line are as same for this example too checking for type of variable and displaying value.</p><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*FtV1lF4z3pSUAlbdveb3Cw.png" /></figure><p>As per the example the output we get a typeof as <em>boolean </em>for variable <em>ageIsGreaterThan </em>and value as<em> true.</em></p><p>Here,we have seen the three dataypes used in JavaScript.</p><p><strong>Thank You</strong>…!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5efe4388a4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>