<?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: Dharchini</title>
    <description>The latest articles on DEV Community by Dharchini (@dharchini).</description>
    <link>https://dev.to/dharchini</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%2F968979%2F11aa37fa-86b7-42e1-b222-719317f8d60d.png</url>
      <title>DEV Community: Dharchini</title>
      <link>https://dev.to/dharchini</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dharchini"/>
    <language>en</language>
    <item>
      <title>JavaScript function</title>
      <dc:creator>Dharchini</dc:creator>
      <pubDate>Wed, 16 Nov 2022 16:23:59 +0000</pubDate>
      <link>https://dev.to/dharchini/javascript-function-1fod</link>
      <guid>https://dev.to/dharchini/javascript-function-1fod</guid>
      <description>&lt;p&gt;A JavaScript function is a section of code created to carry out a certain purpose. When "something" calls a JavaScript function, it is carried out (calls it).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax of JavaScript Functions&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A JavaScript function's definition consists of the function keyword, a name, and parentheses (). Function names may also include underscores, dollar signs, and other characters (same rules as variables). Names of parameters may be included in parenthesis and separated by commas:&lt;br&gt;
(parameter1, parameter2, ...)&lt;/p&gt;

&lt;p&gt;Curly brackets enclose the code that the function will execute: {}&lt;/p&gt;

&lt;p&gt;The function definition lists the function arguments between parentheses (). When a function is called, values are sent to it as arguments.&lt;/p&gt;

&lt;p&gt;The arguments (the parameters) operate as local variables within the function.&lt;/p&gt;

&lt;p&gt;let x = myFunction(4, 3);    // Function is called, return value will end up in x&lt;/p&gt;

&lt;p&gt;function myFunction(a, b) {&lt;br&gt;
  return a * b;        // Function returns the product of a and b&lt;br&gt;
}&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>functions</category>
      <category>vstech</category>
      <category>vstechacademy</category>
    </item>
    <item>
      <title>Declaration and Usage of Variables in JavaScript</title>
      <dc:creator>Dharchini</dc:creator>
      <pubDate>Wed, 16 Nov 2022 15:52:55 +0000</pubDate>
      <link>https://dev.to/dharchini/declaration-and-usage-of-variables-in-javascript-3p2e</link>
      <guid>https://dev.to/dharchini/declaration-and-usage-of-variables-in-javascript-3p2e</guid>
      <description>&lt;p&gt;In JavaScript, variables are specified using one of three syntaxes. By providing the grammar template for creating variables, I can illustrate them. A syntax template is a generalized form of a JavaScript component or phrase.&lt;/p&gt;

&lt;p&gt;The rules for creating variables must be reviewed before we go on to the how-to.&lt;/p&gt;

&lt;p&gt;Variables can start with a symbol, numeric, or underscore characters. A variable name should always start with an alphabetic letter in programming.&lt;/p&gt;

&lt;p&gt;The variables may have additional alphabetic, numeric, or symbol characters after the first character. Making your variable names relevant is the secret to good variable naming, unless the variable is only used very briefly and insignificantly.&lt;/p&gt;

&lt;p&gt;The three syntax templates for declaring new variables are:&lt;/p&gt;

&lt;p&gt;let variable-name = expression;&lt;br&gt;
var variable-name = expression;&lt;br&gt;
const variable-name = expression;&lt;/p&gt;

&lt;p&gt;What sets apart these three approaches to defining variables, you might wonder. Two of them are connected to the idea of "changing scope," The other version, which starts with const, will remain the same and can't be changed.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>variables</category>
      <category>vsacademy</category>
      <category>vstechacademy</category>
    </item>
    <item>
      <title>Introduction to JavaScript</title>
      <dc:creator>Dharchini</dc:creator>
      <pubDate>Tue, 08 Nov 2022 19:10:50 +0000</pubDate>
      <link>https://dev.to/dharchini/introduction-to-javascript-llg</link>
      <guid>https://dev.to/dharchini/introduction-to-javascript-llg</guid>
      <description>&lt;p&gt;Javascript is a dynamic computer programming language. It is lightweight and most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages. It is an interpreted programming language with object-oriented capabilities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advantage&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Less server interaction&lt;/li&gt;
&lt;li&gt;Immediate feedback to the visitors&lt;/li&gt;
&lt;li&gt;Increased interactivity&lt;/li&gt;
&lt;li&gt;Richer interfaces&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Data Types&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;JavaScript allows you to work with three primitive data types,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Numbers, eg. 123, 120.50 etc.&lt;/li&gt;
&lt;li&gt;Strings of text e.g. "This text string" etc.&lt;/li&gt;
&lt;li&gt;Boolean e.g. true or false&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Variables&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Variables are declared with the var keyword as follows. JavaScript is untyped language. This means that a JavaScript variable can hold a value of any data type.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; var name = "Ali";
 var money;
 money = 2000.50;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;JavaScript Variable Scope&lt;/strong&gt;&lt;br&gt;
The scope of a variable is the region of your program in which it is defined. JavaScript variables have only two scopes.&lt;/p&gt;

&lt;p&gt;Global Variables − A global variable has global scope which means it can be defined anywhere in your JavaScript code.&lt;/p&gt;

&lt;p&gt;Local Variables − A local variable will be visible only within a function where it is defined. Function parameters are always local to that function.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>vstech</category>
      <category>vstechacademy</category>
      <category>datatypes</category>
    </item>
  </channel>
</rss>
