<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JavaScript Archives - Artificial Intelligence</title>
	<atom:link href="https://www.aiuniverse.xyz/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.aiuniverse.xyz/category/javascript/</link>
	<description>Exploring the universe of Intelligence</description>
	<lastBuildDate>Sat, 15 Jul 2023 13:01:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>What is JavaScript and How JavaScript Works &#038; Architecture</title>
		<link>https://www.aiuniverse.xyz/javascript-works-and-architecture/</link>
					<comments>https://www.aiuniverse.xyz/javascript-works-and-architecture/#comments</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Wed, 12 Jul 2023 07:42:43 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[features of javascript]]></category>
		<category><![CDATA[Fundamental Tutorials of JavaScript: Getting started Step by Step]]></category>
		<category><![CDATA[How JavaScript Works & Architecture]]></category>
		<category><![CDATA[How to Install and Configure JavaScript]]></category>
		<category><![CDATA[Top Use Cases of JavaScript]]></category>
		<category><![CDATA[What is javascript]]></category>
		<category><![CDATA[Workflow of JavaScript]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=17436</guid>

					<description><![CDATA[<p>JavaScript is a programming language commonly used in web development to add interactive features and dynamic content to websites. It was first introduced in 1995 and has <a class="read-more-link" href="https://www.aiuniverse.xyz/javascript-works-and-architecture/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/javascript-works-and-architecture/">What is JavaScript and How JavaScript Works &amp; Architecture</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-media-text alignwide is-stacked-on-mobile"><figure class="wp-block-media-text__media"><img fetchpriority="high" decoding="async" width="225" height="225" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/07/download-1.png" alt="" class="wp-image-17441 size-full" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/07/download-1.png 225w, https://www.aiuniverse.xyz/wp-content/uploads/2023/07/download-1-150x150.png 150w" sizes="(max-width: 225px) 100vw, 225px" /></figure><div class="wp-block-media-text__content">
<p>JavaScript is a programming language commonly used in web development to add interactive features and dynamic content to websites. It was first introduced in 1995 and has since become one of the most widely used programming languages on the web. In this article, we will explore the various use cases, features, and workflows of JavaScript.</p>
</div></div>



<h2 class="wp-block-heading">Top Use Cases of JavaScript</h2>



<p>JavaScript is commonly used for client-side scripting, which means it is executed on the user&#8217;s web browser rather than on the web server. Some of the top use cases of JavaScript include:</p>



<ul class="wp-block-list">
<li>Form validation</li>



<li>Creating interactive UI elements such as dropdown menus and sliders</li>



<li>Animating web pages</li>



<li>Loading new content without refreshing the page (also known as AJAX)</li>



<li>Creating browser-based games</li>



<li>Creating chatbots</li>



<li>Implementing real-time updates on a page</li>



<li>Implementing user authentication and authorization</li>



<li>Creating interactive maps and charts</li>



<li>Building web-based calculators</li>
</ul>



<h2 class="wp-block-heading">Features of JavaScript</h2>



<p>JavaScript is a dynamic language that supports a variety of features, including:</p>



<ul class="wp-block-list">
<li>Object-oriented programming</li>



<li>Functional programming</li>



<li>Prototypal inheritance</li>



<li>Asynchronous programming using callbacks, promises, and async/await</li>



<li>Manipulating the DOM (Document Object Model)</li>



<li>Event-driven programming</li>



<li>Regular expressions</li>
</ul>



<h2 class="wp-block-heading">Workflow of JavaScript</h2>



<p>The workflow of JavaScript typically involves the following steps:</p>



<ol class="wp-block-list">
<li>Writing the code in a text editor or an integrated development environment (IDE)</li>



<li>Saving the code with a .js file extension</li>



<li>Linking the .js file to an HTML document using a script tag</li>



<li>Running the code in a web browser</li>
</ol>



<h2 class="wp-block-heading">How JavaScript Works &amp; Architecture</h2>



<p>JavaScript has a single-threaded event loop architecture, which means that it can only execute one task at a time. However, it can delegate tasks to other threads using Web Workers. JavaScript is also a loosely typed language, which means that variables can be assigned different data types at runtime.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="576" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/07/image-3-1024x576.png" alt="" class="wp-image-17437" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/07/image-3-1024x576.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2023/07/image-3-300x169.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2023/07/image-3-768x432.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2023/07/image-3.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">How to Install and Configure JavaScript</h2>



<p>JavaScript is a client-side programming language, which means that it is executed on the user&#8217;s web browser rather than on the web server. Therefore, there is no need to install or configure JavaScript on a web server. However, developers can install and configure various JavaScript frameworks and libraries for their development environment.</p>



<h2 class="wp-block-heading">Fundamental Tutorials of JavaScript: Getting started Step by Step</h2>



<figure class="wp-block-image size-full"><img decoding="async" width="800" height="300" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/07/image-4.png" alt="" class="wp-image-17439" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/07/image-4.png 800w, https://www.aiuniverse.xyz/wp-content/uploads/2023/07/image-4-300x113.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2023/07/image-4-768x288.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<h2 class="wp-block-heading">What is JavaScript?</h2>



<p>JavaScript is a programming language used to create interactive websites. It is the most commonly used language for front-end web development. With JavaScript, you can add animations, create forms, and much more.</p>



<p>JavaScript is a versatile language that can be used for both front-end and back-end development. It can be run on any browser, making it a popular choice for web development.</p>



<h2 class="wp-block-heading">Setting Up Your Environment</h2>



<p>Before we start coding, we need to set up our environment. To write JavaScript code, we need a text editor and a web browser.</p>



<ol class="wp-block-list">
<li>Choose a text editor: There are many text editors available, such as Notepad++, Visual Studio Code, Sublime Text, and Atom. Choose the one that suits your needs.</li>



<li>Open a web browser: You can use any web browser, such as Google Chrome, Mozilla Firefox, Safari, or Microsoft Edge.</li>
</ol>



<h2 class="wp-block-heading">Writing Your First Program</h2>



<p>Now that we have our environment set up, let&#8217;s write our first program. The &#8220;Hello, World!&#8221; program is a simple program that prints the text &#8220;Hello, World!&#8221; on the screen.</p>



<ol class="wp-block-list">
<li>Open your text editor and create a new file.</li>



<li>Type the following code:</li>
</ol>



<pre class="wp-block-code"><code>console.log("Hello, World!");</code></pre>



<ol class="wp-block-list" start="3">
<li>Save the file with the name &#8220;hello_world.js&#8221;.</li>



<li>Open your web browser and create a new HTML file.</li>



<li>Type the following code:</li>
</ol>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Hello World&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;script src="hello_world.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;</code></pre>



<ol class="wp-block-list" start="6">
<li>Save the file with the name &#8220;index.html&#8221;.</li>



<li>Open the &#8220;index.html&#8221; file in your web browser. You should see the text &#8220;Hello, World!&#8221; printed on the screen.</li>
</ol>



<p>Congratulations! You have written your first JavaScript program.</p>



<h2 class="wp-block-heading">Understanding the Code</h2>



<p>Let&#8217;s take a closer look at the code we just wrote.</p>



<pre class="wp-block-code"><code>console.log("Hello, World!");</code></pre>



<p>This line of code uses the <code>console.log()</code> method to print the text &#8220;Hello, World!&#8221; on the console. The console is a tool used for debugging and testing JavaScript code.</p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Hello World&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;script src="hello_world.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;</code></pre>



<p>This HTML code creates a basic HTML document and includes the JavaScript file we just created using the <code>script</code> tag. The <code>src</code> attribute is used to specify the location of the JavaScript file.</p>



<h2 class="wp-block-heading">More Examples</h2>



<p>Now that you have written your first JavaScript program, it&#8217;s time to practice some more examples. Here are a few examples to get you started:</p>



<h3 class="wp-block-heading">Example 1: Print the Sum of Two Numbers</h3>



<pre class="wp-block-code"><code>let num1 = 10;
let num2 = 20;
let sum = num1 + num2;
console.log(sum);</code></pre>



<p>This code declares two variables <code>num1</code> and <code>num2</code> and initializes them with the values 10 and 20, respectively. It then calculates the sum of the two numbers and stores it in a variable called <code>sum</code>. Finally, it prints the value of <code>sum</code> to the console.</p>



<h3 class="wp-block-heading">Example 2: Create a Function to Calculate the Area of a Circle</h3>



<pre class="wp-block-code"><code>function calculateArea(radius) {
  let area = Math.PI * radius * radius;
  return area;
}

let circleRadius = 5;
let circleArea = calculateArea(circleRadius);
console.log(circleArea);</code></pre>



<p>This code defines a function called <code>calculateArea</code> that takes a parameter <code>radius</code>. It calculates the area of a circle using the formula <code>Math.PI * radius * radius</code> and returns the result. It then declares a variable <code>circleRadius</code> and initializes it with the value 5. It calls the <code>calculateArea</code> function with <code>circleRadius</code> as an argument and stores the result in a variable called <code>circleArea</code>. Finally, it prints the value of <code>circleArea</code> to the console.</p>



<h3 class="wp-block-heading">Example 3: Create an Object to Represent a Person</h3>



<pre class="wp-block-code"><code>let person = {
  firstName: "John",
  lastName: "Doe",
  age: 35,
  occupation: "Web Developer"
};

console.log(person.firstName + " " + person.lastName);
console.log(person.age);
console.log(person.occupation);</code></pre>



<p>This code creates an object <code>person</code> that represents a person. It has four properties: <code>firstName</code>, <code>lastName</code>, <code>age</code>, and <code>occupation</code>. It then prints the person&#8217;s full name, age, and occupation to the console.</p>



<h3 class="wp-block-heading">Example 4: Reverse a String</h3>



<pre class="wp-block-code"><code>function reverseString(str) {
  let reversedStr = "";
  for (let i = str.length - 1; i &gt;= 0; i--) {
    reversedStr += str&#91;i];
  }
  return reversedStr;
}

let str = "hello world";
let reversedStr = reverseString(str);
console.log(reversedStr);</code></pre>



<p>This code defines a function called <code>reverseString</code> that takes a parameter <code>str</code>. It initializes a variable called <code>reversedStr</code> to an empty string. It then loops through the characters of the string in reverse order and appends each character to <code>reversedStr</code>. Finally, it returns the reversed string. It then declares a variable <code>str</code> and initializes it with the value &#8220;hello world&#8221;. It calls the <code>reverseString</code> function with <code>str</code> as an argument and stores the result in a variable called <code>reversedStr</code>. Finally, it prints the value of <code>reversedStr</code> to the console.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>In this article, we have learned the basics of JavaScript and how to write your first program – the &#8220;Hello, World!&#8221; program. We have also looked at how to set up your environment and run the program in a web browser. Additionally, we have provided some examples for you to practice and improve your JavaScript skills. With practice and dedication, you can become a skilled JavaScript developer. Happy coding!</p>
<p>The post <a href="https://www.aiuniverse.xyz/javascript-works-and-architecture/">What is JavaScript and How JavaScript Works &amp; Architecture</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/javascript-works-and-architecture/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>What is Browser Object Model (BOM) in JavaScript and how many types of BOM?</title>
		<link>https://www.aiuniverse.xyz/what-is-browser-object-model-bom-in-javascript-and-how-many-types-of-bom/</link>
					<comments>https://www.aiuniverse.xyz/what-is-browser-object-model-bom-in-javascript-and-how-many-types-of-bom/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Sat, 15 Apr 2023 10:18:06 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[frames object in javascript]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[location object in javascript]]></category>
		<category><![CDATA[navigator in javascript]]></category>
		<category><![CDATA[Screen object in javascript]]></category>
		<category><![CDATA[What is Browser Object Model (BOM) in JavaScript and how many types of BOM]]></category>
		<category><![CDATA[What is document object in javascript]]></category>
		<category><![CDATA[what is history]]></category>
		<category><![CDATA[window object in javascript]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=16358</guid>

					<description><![CDATA[<p>What is BOM in JavaScript? BOM stands for Browser Object Model. The Browser Object Model (BOM) in JavaScript refers to a set of objects that are available <a class="read-more-link" href="https://www.aiuniverse.xyz/what-is-browser-object-model-bom-in-javascript-and-how-many-types-of-bom/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-browser-object-model-bom-in-javascript-and-how-many-types-of-bom/">What is Browser Object Model (BOM) in JavaScript and how many types of BOM?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">What is BOM in JavaScript?</h2>



<p>BOM stands for <strong>Browser Object Model</strong>. The Browser Object Model (BOM) in JavaScript refers to a set of objects that are available in the browser&#8217;s window object, It is used to interact with the browser.</p>



<p>Some of the key objects in the BOM include:-</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="664" height="601" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/bom.webp" alt="" class="wp-image-16468" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/bom.webp 664w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/bom-300x272.webp 300w" sizes="auto, (max-width: 664px) 100vw, 664px" /></figure>



<ol class="wp-block-list">
<li></li>
</ol>



<h2 class="wp-block-heading"><strong>window object:</strong></h2>



<p>In JavaScript, Window object is the top-level object that represents the browser window. It provides access to various properties and methods, such as the <strong>document object, frame object, location object, history object, navigator object and Screen object.</strong></p>



<h2 class="wp-block-heading"><strong>Document object</strong>:</h2>



<p>In JavaScript, Document object represents the web page that is currently loaded in the browser window. It provides access to various properties and methods, such as the title, URL, and various DOM (Document Object Model) elements.</p>



<h2 class="wp-block-heading">History object:</h2>



<p>In JavaScript, History object represents the browser history, which includes the URLs of previously visited web pages. It provides methods to navigate back and forward in the history, as well as to manipulate the history by adding or replacing entries.</p>



<h2 class="wp-block-heading"><strong>navigator object:</strong></h2>



<p>The Navigator object in JavaScript represents the browser or user agent that is running the current script. It provides information about the browser, such as the name, version, and platform, as well as other details such as whether cookies are enabled and whether the browser supports specific features.</p>



<h2 class="wp-block-heading"><strong>Screen object:</strong></h2>



<p>This object represents the physical display screen of the user&#8217;s computer. It provides information about the screen size, color depth, and resolution, as well as methods to control the display, such as resizing or scrolling the window.</p>



<h2 class="wp-block-heading"><strong>Location object:</strong></h2>



<p>In JavaScript, Location object represents the current URL of the web page loaded in the browser window. It provides methods to manipulate the URL, such as changing the hostname, pathname, or search parameters.</p>



<p><strong>Note:-</strong> BOM provides web developers with a powerful set of tools for manipulating the browser window and its contents, which can be used to create rich and interactive web applications.</p>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-browser-object-model-bom-in-javascript-and-how-many-types-of-bom/">What is Browser Object Model (BOM) in JavaScript and how many types of BOM?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/what-is-browser-object-model-bom-in-javascript-and-how-many-types-of-bom/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is JavaScript Objects and JavaScript Array ?</title>
		<link>https://www.aiuniverse.xyz/javascript-objects/</link>
					<comments>https://www.aiuniverse.xyz/javascript-objects/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Tue, 04 Apr 2023 12:20:54 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[creating object in javascript]]></category>
		<category><![CDATA[javascript array]]></category>
		<category><![CDATA[javascript array constructor]]></category>
		<category><![CDATA[javascript array directly]]></category>
		<category><![CDATA[javascript array literal]]></category>
		<category><![CDATA[javascript object]]></category>
		<category><![CDATA[object constructor]]></category>
		<category><![CDATA[what is javascript objects]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=16318</guid>

					<description><![CDATA[<p>What is JavaScript Objects ? JavaScript object is an real world entity having some state and behavior (properties and method) is known as JavaScript. For example: car, <a class="read-more-link" href="https://www.aiuniverse.xyz/javascript-objects/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/javascript-objects/">What is JavaScript Objects and JavaScript Array ?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">What is JavaScript Objects ?</h2>



<p>JavaScript object is an real world entity having some state and behavior (properties and method) is known as JavaScript. For example: car, pen, bike, chair, glass, keyboard, monitor etc.</p>



<p>JavaScript is an object-based language. Everything is an object in JavaScript. It is template based not class based. Here, we don&#8217;t create class to get the object. But, we direct create objects.</p>



<p><strong>Creating Objects in JavaScript</strong>:</p>



<p>In JavaScript, There are 3 ways to create objects.</p>



<ol class="wp-block-list">
<li>By object literal</li>



<li>By creating instance of Object directly (using new keyword)</li>



<li>By using an object constructor (using new keyword)</li>
</ol>



<ol class="wp-block-list">
<li><strong>Creating object using object literal:</strong></li>
</ol>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>object={property1:value1,property2:value2.....propertyN:valueN}  
</code></pre>



<p>The given syntax, property and value is separated by : (colon).</p>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
emp={id:101,name:"Abhishek Kumar",salary:50000}  
document.write(emp.id+" "+emp.name+" "+emp.salary);  
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="281" height="45" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture-2.png" alt="" class="wp-image-16325"/></figure>



<p><strong>2) By creating instance of Object</strong>:</p>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>var objectname=new Object();  
</code></pre>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var emp=new Object();  
emp.id=101;  
emp.name="Rahul Kumar";  
emp.salary=30000;  
document.write(emp.id+" "+emp.name+" "+emp.salary);  
&lt;/script&gt; 
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="185" height="38" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/02-1.png" alt="" class="wp-image-16327"/></figure>



<p><strong>3) By using an Object constructor</strong>:</p>



<p>Object constructor need to create function with arguments. Each argument value can be assigned in the current object by using this keyword. The&nbsp;this keyword&nbsp;refers to the current object.</p>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
function emp(id,name,salary)
{  
this.id=id;  
this.name=name;  
this.salary=salary;  
}  
e=new emp(1001,"Rohit Kumar",50000);  
  
document.write(e.id+" "+e.name+" "+e.salary);  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="209" height="27" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/3-1.png" alt="" class="wp-image-16328"/></figure>



<h2 class="wp-block-heading">JavaScript Array:</h2>



<p>In JavaScript, An array is a collection of data that are stored in a variable. The values in an array can be of any type, including numbers, strings, objects, and even other arrays. Arrays are useful for storing and manipulating sets of data, such as a list of names or a series of numbers.</p>



<p>To create an array in JavaScript, you can use square brackets <code>[]</code> and separate the values with commas( , ).</p>



<p>There are 3 ways to construct array in JavaScript</p>



<ol class="wp-block-list">
<li>By array literal</li>



<li>By creating instance of Array directly (using new keyword)</li>



<li>By using an Array constructor (using new keyword)</li>
</ol>



<h2 class="wp-block-heading">1) JavaScript array literal</h2>



<p><strong>Syntax</strong>:</p>



<pre class="wp-block-code"><code>var arrayname=&#91;value1,value2.....valueN];</code></pre>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var emp=&#91;"Ram","Shyam","Mohan"];  
for (i=0;i&lt;emp.length;i++){  
document.write(emp&#91;i] + "&lt;br/&gt;");  
}  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="159" height="71" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture-3.png" alt="" class="wp-image-16329"/></figure>



<h2 class="wp-block-heading">2) JavaScript Array directly (new keyword)</h2>



<p><strong>Syntax:</strong> </p>



<pre class="wp-block-code"><code>var arrayname=new Array();  
</code></pre>



<p>Here,&nbsp;new keyword&nbsp;is used to create instance of array.</p>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var i;  
var emp = new Array();  
emp&#91;0] = "Rohit";  
emp&#91;1] = "Mohit";  
emp&#91;2] = "Urfi";  
  
for (i=0;i&lt;emp.length;i++)
{  
document.write(emp&#91;i] + "&lt;br&gt;");  
}  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="169" height="66" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/00.png" alt="" class="wp-image-16330"/></figure>



<h2 class="wp-block-heading">3) JavaScript array constructor (new keyword):</h2>



<p>The example of creating object by array constructor is given below-</p>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var emp=new Array("Rahul","Rohit","Smith");  
for (i=0;i&lt;emp.length;i++)
{  
document.write(emp&#91;i] + "&lt;br&gt;");  
}  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="126" height="70" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/3-2.png" alt="" class="wp-image-16331"/></figure>



<h2 class="wp-block-heading">JavaScript Array Methods:</h2>



<p>Arrays have many built-in methods for manipulating and iterating over the elements.</p>



<p><strong>Some of the most commonly used array methods are:</strong></p>



<ul class="wp-block-list">
<li><strong>length</strong>&nbsp;&#8211; This method returns the number of elements in an array. For example, the following code will return 3:</li>
</ul>



<pre class="wp-block-code"><code>var myArray = &#91;1, "Hello", &#91;2, 3]];
console.log(myArray.length);
</code></pre>



<ul class="wp-block-list">
<li><strong>push</strong>&nbsp;&#8211; This method is used to add an element to the end of an array. For example, the following code will add the element &#8220;World&#8221; to the end of the array:</li>
</ul>



<pre class="wp-block-code"><code>var myArray = &#91;1, "Hello", &#91;2, 3]];
myArray.push("World");
console.log(myArray); // &#91;1, "Hello", &#91;2, 3], "World"]</code></pre>



<ul class="wp-block-list">
<li><strong>pop</strong>&nbsp;&#8211; This method is used to remove the last element of an array. For example, the following code will remove the last element (&#8220;World&#8221;) from the array:</li>
</ul>



<pre class="wp-block-code"><code>var myArray = &#91;1, "Hello", &#91;2, 3], "World"];
myArray.pop();
console.log(myArray); // &#91;1, "Hello", &#91;2, 3]]
</code></pre>



<ul class="wp-block-list">
<li><strong>shift</strong>&nbsp;&#8211; This method is used to remove the first element of an array. For example, the following code will remove the first element (1) from the array:</li>
</ul>



<pre class="wp-block-code"><code>var myArray = &#91;1, "Hello", &#91;2, 3]];
myArray.shift();
console.log(myArray); // &#91;"Hello", &#91;2, 3]]
</code></pre>



<ul class="wp-block-list">
<li><strong>unshift</strong>&nbsp;&#8211; This method is used to add an element to the beginning of an array. For example, the following code will add the element 0 to the beginning of the array:</li>
</ul>



<pre class="wp-block-code"><code>var myArray = &#91;1, "Hello", &#91;2, 3]];
myArray.unshift(0);
console.log(myArray); // &#91;0, 1, "Hello", &#91;2, 3]]
</code></pre>



<ul class="wp-block-list">
<li><strong>slice</strong>&nbsp;&#8211; This method is used to extract a portion of an array. For example, the following code will extract the elements from index 1 to 2 (exclusive):</li>
</ul>



<pre class="wp-block-code"><code>var myArray = &#91;1, "Hello", &#91;2, 3]];
console.log(myArray.slice(1, 2)); // &#91;"Hello"]
</code></pre>



<ul class="wp-block-list">
<li><strong>splice</strong>&nbsp;&#8211; This method is used to add or remove elements from an array. For example, the following code will remove the element at index 1 and add the elements &#8220;Hello World&#8221; and [4, 5] at index 1:</li>
</ul>



<pre class="wp-block-code"><code>var myArray = &#91;1, "Hello", &#91;2, 3]];
myArray.splice(1, 1, "Hello World", &#91;4, 5]);
console.
</code></pre>



<h2 class="wp-block-heading">JavaScript String:</h2>



<p>It is one of the most important concept of JavaScript, A string is a sequence of characters enclosed within single quotes or double quotes. For example, the following are valid strings in JavaScript:</p>



<pre class="wp-block-code"><code>let strName = 'Hello, world!';
let strName = "Hello, world!";
</code></pre>



<p>There are 2 ways to create string in JavaScript</p>



<ol class="wp-block-list">
<li>By string literal</li>



<li>By string object (using new keyword)</li>
</ol>



<ol class="wp-block-list">
<li><strong>By string literal:</strong></li>
</ol>



<p>String literal is created using single quotes or double quotes.</p>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>let strName = 'Hello, world!';
let strName = "Hello, world!";</code></pre>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var str='This is the example of string literal';  
var str1="This is the example of string literal";
document.write(str + "&lt;br&gt;"); 
document.write(str1);  

&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="255" height="71" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture-4.png" alt="" class="wp-image-16336"/></figure>



<p><strong>2. By string object (using new keyword):</strong></p>



<p>new keyword&nbsp;is used to create instance of string.</p>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>var strName=new String("string literal");  </code></pre>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var strName=new String("hello javascript string");  
document.write(strName);  
&lt;/script&gt; 
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="187" height="40" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/2-2.png" alt="" class="wp-image-16337"/></figure>



<h2 class="wp-block-heading">String Methods: </h2>



<p>String have many in-built methods for manipulating the elements.</p>



<p><strong>Some of the most commonly used string methods are:</strong></p>



<ul class="wp-block-list">
<li><strong>length</strong>()&nbsp;&#8211; This method returns the number of characters in a string. For example, the following code will return 11:</li>
</ul>



<pre class="wp-block-code"><code>var str = "Hello World";
console.log(str.length);</code></pre>



<ul class="wp-block-list">
<li><strong>charAt(</strong>Index<strong>) </strong>&#8211; This method returns the character at the given index. For example, the following code will return c:</li>
</ul>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var str="Welcome";  
document.write(str.charAt(3));  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<ul class="wp-block-list">
<li><strong>concat(</strong>str<strong>) </strong>&#8211; This method concatenates or joins two strings. For example, the following code will return &#8211; Welcome To Cotocus</li>
</ul>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var s1="Welcome ";  
var s2="To Cotocus";  
var s3=s1.concat(s2);  
document.write(s3);  // Welcome To Cotocus
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<ul class="wp-block-list">
<li><strong>indexOf</strong> (index)&nbsp;&#8211; This method is used to find the index of a specific character or substring in a string. For example, the following code will return 8:</li>
</ul>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var s1="Welcome to aiuniverse.xyz";  
var n=s1.indexOf("to");  
document.write(n);  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<ul class="wp-block-list">
<li><strong>split() Method</strong>: </li>
</ul>



<p>It splits a string into substring array, then returns that newly created array.</p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
    &lt;script&gt;  
        var str="Welcome to aiuniverse.xyz";  
        document.write(str.split(" ")); //splits the given string.  
    &lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<ul class="wp-block-list">
<li><strong>trim() Method</strong>: This method removes leading and trailing whitespaces from the string.</li>
</ul>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var s1="     Maruti Cotocus      ";  
var s2=s1.trim();  
document.write(s2);  // remove before space and after space
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<ul class="wp-block-list">
<li><strong>toUpperCase() Method</strong>: These methods are used to convert a string to uppercase letters.</li>
</ul>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var s1="JavaScript toUpperCase Example by Maruti";  
var s2=s1.toUpperCase();  
document.write(s2);  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="410" height="39" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/11-2.png" alt="" class="wp-image-16340" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/11-2.png 410w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/11-2-300x29.png 300w" sizes="auto, (max-width: 410px) 100vw, 410px" /></figure>



<ul class="wp-block-list">
<li><strong>toLowerCase() Method</strong>: These methods are used to convert a string to lowercase letters.</li>
</ul>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var s1="JavaScript toUpperCase Example by Maruti";  
var s2=s1.toLowerCase();  
document.write(s2);  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="300" height="30" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/00-1.png" alt="" class="wp-image-16341"/></figure>



<ul class="wp-block-list">
<li><strong>slice(beginIndex, endIndex) Method</strong>&#8211; This method is used to extract a portion of a string.</li>
</ul>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var s1="MarutiKumar";  
var s2=s1.slice(3,6);  
document.write(s2);  //uti
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<ul class="wp-block-list">
<li><strong>replace()&nbsp;</strong>&#8211; This method is used to replace a specific character or substring in a string. For example, the following code will return &#8220;Hello Universe&#8221;:</li>
</ul>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

&lt;script&gt;
var str="Welcome Cotocus";
document.writeln(str.replace("Cotocus","Maruti"));
&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="138" height="29" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/0000.png" alt="" class="wp-image-16342"/></figure>



<h2 class="wp-block-heading">Date Object:</h2>



<p>In JavaScript, Date object has a in-built object that can be used to work with dates and times.</p>



<p>You can use 4 variant of Date constructor to create date object.</p>



<ol class="wp-block-list">
<li>Date()</li>



<li>Date(milliseconds)</li>



<li>Date(dateString)</li>



<li>Date(year, month, day, hours, minutes, seconds, milliseconds)</li>
</ol>



<ol class="wp-block-list">
<li><strong>Date()</strong>: Date object is used to prints current date and time both.</li>
</ol>



<p><strong>Example:</strong> </p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
Current Date and Time: &lt;span id="txt"&gt;&lt;/span&gt;  
&lt;script&gt;  
var today=new Date();  
document.getElementById('txt').innerHTML=today;  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<p>Another Example:  Print date/month/year.</p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
    &lt;script&gt;  
        var date=new Date();  
        var day=date.getDate();  
        var month=date.getMonth()+1;  
        var year=date.getFullYear();  
        document.write("&lt;br&gt;Date is: "+day+"/"+month+"/"+year);  
        &lt;/script&gt;   
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<p><strong>Current Time Example</strong>:</p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
Current Time: &lt;span id="txt"&gt;&lt;/span&gt;
&lt;script&gt;
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
document.getElementById('txt').innerHTML=h+":"+m+":"+s;
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<h2 class="wp-block-heading">JavaScript Math:</h2>



<p>In JavaScript, Math is a built-in object in JavaScript that provides mathematical functions and constants for performing mathematical operations such as trigonometry, logarithms, etc. It provides a set of methods and properties that allow developers to perform complex mathematical calculations easily and efficiently.</p>



<p><strong>most commonly used functions in the&nbsp;<code>Math</code>&nbsp;object is-</strong></p>



<ol class="wp-block-list">
<li><strong>Math.random()</strong></li>
</ol>



<p>Math.random() method returns the random number between &nbsp;0 (inclusive) and 1 (exclusive).&nbsp;This function can be used to generate random numbers for various purposes such as games, simulations, and other applications.</p>



<p><strong>For Example:</strong></p>



<p></p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

Random Number is: &lt;span id="p2"&gt;&lt;/span&gt;    
&lt;script&gt;    
document.getElementById('p2').innerHTML=Math.random();    
&lt;/script&gt;   

&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<p><strong>Output:</strong> </p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="298" height="40" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/01.png" alt="" class="wp-image-16347"/></figure>



<p><strong>2. Math.pow(m,n)</strong></p>



<p>Math.pow(m,n) method returns the m to the power of n that is m<sup>n</sup>.</p>



<p><strong>For Example:</strong></p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

5 to the power of 3 is: &lt;span id="p5"&gt;&lt;/span&gt;    
&lt;script&gt;    
document.getElementById('p5').innerHTML=Math.pow(5,3);    
&lt;/script&gt;    

&lt;/body&gt;
&lt;/html&gt;</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="199" height="39" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/22.png" alt="" class="wp-image-16348"/></figure>



<p><strong>3. Math.sqrt(n)</strong></p>



<p>This method is used to returns the square root of the given number.</p>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

Square Root of 625 is: &lt;span id="p1"&gt;&lt;/span&gt;    
&lt;script&gt;    
document.getElementById('p1').innerHTML=Math.sqrt(625);    
&lt;/script&gt;   

&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="171" height="30" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture-5.png" alt="" class="wp-image-16349"/></figure>



<p><strong>4. Math.floor(n)</strong></p>



<p>This method is used&nbsp;to round a number down to the nearest integer. For example 9 for 9.7, 5 for 5.9 etc.</p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

Floor of 4.6 is: &lt;span id="p4"&gt;&lt;/span&gt;    
&lt;script&gt;    
document.getElementById('p4').innerHTML=Math.floor(4.6);    
&lt;/script&gt;  

&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="137" height="36" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/image.png" alt="" class="wp-image-16350"/></figure>



<p><strong>5. Math.ceil(n)</strong></p>



<p>This method is used to rounds a number up to the nearest integer. For example 4 for 3.7, 6 for 5.9 etc.</p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

Ceil of 7.6 is: &lt;span id="p5"&gt;&lt;/span&gt;    
&lt;script&gt;    
document.getElementById('p5').innerHTML=Math.ceil(7.6);    
&lt;/script&gt;    

&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="127" height="33" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/1.png" alt="" class="wp-image-16353"/></figure>



<p><strong>6. Math.abs(n)</strong></p>



<p>This method returns the absolute value for the given number. For example 5 for -5.6 &amp; 6 for -6.6 etc.</p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

Absolute value of -4 is: &lt;span id="p8"&gt;&lt;/span&gt;      
&lt;script&gt;      
document.getElementById('p8').innerHTML=Math.abs(-4);      
&lt;/script&gt; 

&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<p><strong>Example:</strong> </p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="182" height="36" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/55.png" alt="" class="wp-image-16354"/></figure>



<h2 class="wp-block-heading">Number Object:</h2>



<p>In JavaScript, a number object is a built-in object that provides a number of properties and methods for working with numeric values. The&nbsp;<code>Number</code>&nbsp;object can be used to convert a value to a number, perform mathematical operations, and format numbers for display.</p>



<p><strong>Most commonly used methods of the&nbsp;<code>Number</code>&nbsp;object is</strong>&#8211;</p>



<ul class="wp-block-list">
<li><strong>Number()</strong>: This method is used to convert a value to a number, This function can be used to convert strings, Booleans, and other types of values to numbers.</li>
</ul>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>console.log(Number("3.14"));
// Output: 3.14
console.log(Number(true));
// Output: 1
</code></pre>



<ul class="wp-block-list">
<li><strong>toFixed()</strong>: This method to format a number with a specific number of decimal places:</li>
</ul>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>const numObj = new Number(10.12345);
console.log(numObj.toFixed(2)); // Output: "10.12"
</code></pre>



<ul class="wp-block-list">
<li><strong>valueOf():</strong> convert a number object to a primitive numeric value using the <code>valueOf()</code> method:</li>
</ul>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>const numObj = new Number(10);
const num = numObj.valueOf();
console.log(num); // Output: 10
</code></pre>



<h2 class="wp-block-heading">Boolean:</h2>



<p>Boolean&nbsp;object is used to represents value in two states:&nbsp;true&nbsp;or&nbsp;false. The&nbsp;<code>Boolean</code>&nbsp;object can be used to create Boolean values and perform logical operations, such as and, or, and not.</p>



<p>A Boolean value can be created by using the&nbsp;<code>Boolean()</code>&nbsp;function or by assigning a value of true or false to a variable.</p>



<pre class="wp-block-code"><code>var isTrue = Boolean(1);
console.log(isTrue); // Output: true
var isFalse = Boolean(0);
console.log(isFalse); // Output: false
</code></pre>
<p>The post <a href="https://www.aiuniverse.xyz/javascript-objects/">What is JavaScript Objects and JavaScript Array ?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/javascript-objects/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JavaScript Basics</title>
		<link>https://www.aiuniverse.xyz/javascript-basics/</link>
					<comments>https://www.aiuniverse.xyz/javascript-basics/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Mon, 03 Apr 2023 13:05:14 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[advantage of javascript comments]]></category>
		<category><![CDATA[data types]]></category>
		<category><![CDATA[JavaScript Basic]]></category>
		<category><![CDATA[javascript comment]]></category>
		<category><![CDATA[javascript global variable]]></category>
		<category><![CDATA[javascript local variable]]></category>
		<category><![CDATA[javascript loops]]></category>
		<category><![CDATA[js if-else statement]]></category>
		<category><![CDATA[non-primitive data type]]></category>
		<category><![CDATA[primitive data types]]></category>
		<category><![CDATA[switch case]]></category>
		<category><![CDATA[type of javascript comment]]></category>
		<category><![CDATA[what is operatior]]></category>
		<category><![CDATA[what is variable]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=16308</guid>

					<description><![CDATA[<p>JavaScript Comment: In JavaScript, comments are used to add information about the code, that are ignored by the browser or interpreter. Advantage of JavaScript comments: The main <a class="read-more-link" href="https://www.aiuniverse.xyz/javascript-basics/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/javascript-basics/">JavaScript Basics</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading">JavaScript Comment:</h1>



<p>In JavaScript, comments are used to add information about the code, that are ignored by the browser or interpreter. </p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="903" height="212" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/javascript-comment.webp" alt="" class="wp-image-16456" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/javascript-comment.webp 903w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/javascript-comment-300x70.webp 300w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/javascript-comment-768x180.webp 768w" sizes="auto, (max-width: 903px) 100vw, 903px" /></figure>



<p><strong>Advantage of JavaScript comments:</strong></p>



<p>The main advantage of comments are-</p>



<ol class="wp-block-list">
<li><strong>Easy to understand the code</strong>:&nbsp;It can be used to elaborate the code so that end user can easily understand the code.</li>



<li><strong>To avoid the unnecessary code</strong>:&nbsp;It can also be used to avoid the code being executed. Sometimes, we add the code to perform some action. But after sometime, there may be need to disable the code. In such case, it is better to use comments.</li>
</ol>



<h2 class="wp-block-heading">Types of JavaScript Comments</h2>



<p>There are two types of comments in JavaScript.</p>



<ol class="wp-block-list">
<li><strong>Single-line comments:</strong> They begin with two forward slashes (//) and continue until the end of the line.</li>
</ol>



<p>Example1:</p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
// It is single line comment  
document.write("hello aiuniverse.xyz");  
&lt;/script&gt; 
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture-1-1024x576.png" alt="" class="wp-image-16309" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture-1-1024x576.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture-1-300x169.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture-1-768x432.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture-1.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Example2:</p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var a=10;  
var b=20;  
var c=a+b;//It adds values of a and b variable  
document.write(c);//prints sum of 10 and 20  
&lt;/script&gt;   
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/2-1-1024x576.png" alt="" class="wp-image-16310" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/2-1-1024x576.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/2-1-300x169.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/2-1-768x432.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/2-1.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>2. <strong>Multi-line comments:</strong> They begin with /* and end with */. Anything between these characters will be ignored by the browser or interpreter.</p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
/* It is multi line comment.  
It will not be displayed */  
document.write("example of javascript multiline comment");  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/3-1024x576.png" alt="" class="wp-image-16311" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/3-1024x576.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/3-300x169.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/3-768x432.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/3.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">What is Variables ?</h2>



<p>Variable is an essential part of any programming language, It is used to stored data. They allow you to store, retrieve, and manipulate data in your programs. There are two types of variables in JavaScript : Local variable , Global variable.</p>



<p>Some rules for declaring a JavaScript variable (also known as identifiers).</p>



<ul class="wp-block-list">
<li>Name must start with a letter (a to z or A to Z), underscore( _ ), or dollar( $ ) sign.</li>



<li>After first letter we can use any digits (0 to 9), for example value1.</li>



<li>JavaScript variables are case sensitive, for example x and X are different variables.</li>
</ul>



<p>Variables are declared using the <strong><code>var</code>, <code>let</code>,</strong> or <strong><code>const</code> </strong>keyword followed by the variable name.</p>



<p>For example:</p>



<pre class="wp-block-code"><code>// Declaring a variable using var
var message = "Hello World!";

// Declaring a variable using let
let age = 20;

// Declaring a variable using const
const PI = 3.14;
</code></pre>



<p>Where, <strong>&#8220;var&#8221;</strong> keyword followed by the name of the variable and &nbsp;<strong>&#8220;let&#8221;</strong> and <strong>&#8220;const&#8221;</strong> keywords to declare variables.&nbsp;</p>



<p>Once a variable is declared, its value can be assigned or updated by using the <code>=</code> operator:</p>



<pre class="wp-block-code"><code>// Assigning a value to a variable
var x;
x = 20;

// Updating the value of a variable
var y = 6;
y = y + 1;
</code></pre>



<p>Variables can hold various types of values, including numbers, strings, Boolean values, arrays, objects, and more.</p>



<pre class="wp-block-code"><code>// Example of variables holding different types of values
var num = 12;
var greeting = "Hello";
var isTrue = true;
var myArray = &#91;1, 2, 3];
var person = {name: "Rohit", age: 25};
</code></pre>



<h2 class="wp-block-heading">JavaScript Local Variable:</h2>



<p>A JavaScript local variable is declared inside block (function). It is accessible within the function or block only. For example:</p>



<pre class="wp-block-code"><code>&lt;script&gt;  
function abc(){  
var x=20;  //local variable  
}  
&lt;/script&gt; </code></pre>



<p><strong>Or</strong></p>



<pre class="wp-block-code"><code>&lt;script&gt;  
If(10&lt;15){  
var y=30;  //JavaScript local variable  
}  
&lt;/script&gt;</code></pre>



<h2 class="wp-block-heading">JavaScript global variable:</h2>



<p>A variable i.e. declared outside the function or declared with window object is known as global variable. A&nbsp;JavaScript global variable&nbsp;is accessible from any function. For example:</p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var data=500; //gloabal variable  
function a(){  
document.writeln(data);  
}  
function b(){  
document.writeln(data);  
}  
a();//calling JavaScript function
b();
  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/4-1024x576.png" alt="" class="wp-image-16313" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/4-1024x576.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/4-300x169.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/4-768x432.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/4.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">Data Types</h2>



<p>JavaScript provides different&nbsp;data types&nbsp;to hold different types of values. There are two types of data types in JavaScript.</p>



<ol class="wp-block-list">
<li>Primitive data type</li>



<li>Non-primitive (reference) data type</li>
</ol>



<p><strong>Primitive data type</strong>:</p>



<p>There are five types of primitive data types in JavaScript. </p>



<ol class="wp-block-list">
<li><strong>Number:</strong> This data type is used to represent numeric values, including integers and floating-point numbers. (e.g. 10, 3.14)</li>



<li><strong>String:</strong> This data type is used to represent text values, enclosed in single or double quotes. (e.g. &#8220;hello&#8221;, &#8216;world&#8217;)</li>



<li><strong>Boolean:</strong> This data type is used to represent true or false values. (e.g. true, false)</li>



<li><strong>Undefined:</strong> This data type is used to represent a variable that has been declared but not assigned a value. </li>



<li><strong>Null:</strong> This data type has only one value, null, which represents the absence of any object value.</li>
</ol>



<p><strong>Non-Primitive data type:</strong></p>



<p>The non-primitive data types are as follows:</p>



<ol class="wp-block-list">
<li> <strong>Object:</strong> This data type is used to represent complex data structures, including arrays, functions, and objects. (e.g. { name: &#8220;John&#8221;, age: 30 })</li>



<li><strong>Array:</strong> (e.g. [1, 2, 3])</li>
</ol>



<h2 class="wp-block-heading">JavaScript Operators and Expressions</h2>



<h2 class="wp-block-heading">What is Operators ?</h2>



<p>Operators in JavaScript are symbols that perform specific operations on one or more operands (values or variables). For example, the addition operator (+) adds two operands together and the assignment operator (=) assigns a value to a variable.</p>



<p>There are different types of operators in JavaScript, including:</p>



<ol class="wp-block-list">
<li>Arithmetic Operators</li>



<li>Comparison (Relational) Operators</li>



<li>Bitwise Operators</li>



<li>Logical Operators</li>



<li>Assignment Operators</li>



<li>Conditional (ternary) operator</li>
</ol>



<ol class="wp-block-list">
<li><strong>Arithmetic Operators:</strong> Used to perform arithmetic operations on numbers.  Examples: + (addition), &#8211; (subtraction), * (multiplication), / (division), % (modulus), ++ (increment), and &#8212; (decrement).</li>



<li><strong>Comparison Operators:</strong> It is used to compare two values or variables.  Examples: == (equal to), != (not equal to), === (strictly equal to), !== (strictly not equal to), &gt; (greater than), &lt; (less than), &gt;= (greater than or equal to), and &lt;= (less than or equal to).</li>



<li><strong>Bitwise Operators: </strong>Used to perform bitwise operations on numbers. Examples: &amp; (bitwise and), | (bitwise or), ^ (bitwise exclusive or), ~ (bitwise not), &lt;&lt; (left shift), and &gt;&gt; (right shift).</li>



<li><strong>Logical Operators:</strong> It is used to combine two or more conditions. Examples: &amp;&amp; (logical and), || (logical or), and ! (logical not).</li>



<li><strong>Assignment Operators:</strong> It is used to assign values to variables. Examples: = (assignment), += (add and assign), -= (subtract and assign), *= (multiply and assign), /= (divide and assign), and %= (modulus and assign).</li>



<li><strong>Conditional (Ternary) Operator:</strong> It is used to assign a value to a variable based on a condition. Example: variable = (condition) ? value1 : value2;</li>
</ol>



<h2 class="wp-block-heading">What is Expressions ?</h2>



<p>Expressions are combinations of values, variables, and operators that produce a result. For example:</p>



<pre class="wp-block-code"><code>2 + 2 // produces the value 4
"Hello, " + "world!" // produces the value "Hello, world!"
true &amp;&amp; false // produces the value false
Math.Pow(2, 3) // produces the value 8
</code></pre>



<h2 class="wp-block-heading">JS If-Else Statement:</h2>



<p>The&nbsp;if-else statement&nbsp;is used&nbsp;<em>to execute the code whether condition is true or false</em>. There are three forms of if statement in JavaScript.</p>



<ol class="wp-block-list">
<li>If Statement</li>



<li>If else statement</li>



<li>If else if statement</li>
</ol>



<ol class="wp-block-list">
<li><strong>If Statement:</strong></li>
</ol>



<p>The &#8220;if&#8221; statement in JavaScript is used to execute a block of code if a certain condition is true.</p>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>if(expression)
{  
//code to be executed if the condition is true
} 
}  
</code></pre>



<p>2. <strong>If else statement</strong>:</p>



<p>The &#8220;if&#8221; statement in JavaScript is used to execute a block of code if a certain condition is true. The &#8220;else&#8221; clause is used to execute a block of code if the condition is false.</p>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>if (condition) 
{
  // code will be executed if the condition is true
}
else 
{
  // code will be executed if the condition is false
}
</code></pre>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>let number = 5;

if (number % 2 == 0) 
{
  console.log("The number is even.");
} else {
  console.log("The number is odd.");
}
</code></pre>



<p>3.<strong> If else if statement</strong>: (If else ladder):</p>



<pre class="wp-block-code"><code>if(expression1)
{  
//content will be evaluated if expression1 is true  
}  
else if(expression2)
{  
//content will be evaluated if expression2 is true  
}  
else if(expression3)
{  
//content will be evaluated if expression3 is true  
}  
else
{  
//content will be evaluated if no expression is true  
}  </code></pre>



<p><strong>Example:</strong></p>



<pre class="wp-block-code"><code>&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
var a=30;  
if(a==20)
{  
document.write("a is equal to 20");  
}  
else if(a==25)
{  
document.write("a is equal to 25");  
}  
else if(a==20)
{  
document.write("a is equal to 30");  
}  
else
{  
document.write("a is not equal to 20, 25 or 30");  
}  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture01-1024x576.png" alt="" class="wp-image-16314" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture01-1024x576.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture01-300x169.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture01-768x432.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/Capture01.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">Switch case:</h2>



<p>The &#8220;switch&#8221; statement in JavaScript is another control structure, &nbsp;It is used&nbsp;to execute one code from multiple expressions. It is just like &nbsp;&#8220;if-else ladder&#8221;&nbsp; statement&nbsp;when you have multiple conditions to check against a single value.</p>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>switch (expression) 
{
  case value1:
    // code will be executed if expression == value1
    break;
  case value2:
    // code will be executed if expression == value2
    break;
  …
  default:
    // code will be executed if expression does not match any of the values
}</code></pre>



<h2 class="wp-block-heading">JavaScript Loops:</h2>



<p>In JavaScript, Loop statements to execute a block of code repeatedly. There are several type of loop statements:-</p>



<ol class="wp-block-list">
<li><strong>for loop:</strong> The for loop repeats a block of code a specified number of times. It has three parts: initialization, condition, and increment/decrement.</li>
</ol>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>for (initialization; condition; increment/decrement) 
{
  // code will be executed
}
</code></pre>



<p>Example:</p>



<pre class="wp-block-code"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;script&gt;  
for (i=1; i&lt;=10; i++)  
{  
document.write(i + "&lt;br/&gt;")  
}  
&lt;/script&gt;  
&lt;/body&gt;
&lt;/html&gt;</code></pre>



<p><strong>Output:</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/11-1024x576.png" alt="" class="wp-image-16315" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/04/11-1024x576.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/11-300x169.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/11-768x432.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2023/04/11.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ol class="wp-block-list" start="2">
<li><strong>while loop</strong>: The while loop repeats a block of code as long as the specified condition is true.</li>
</ol>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>while (condition) 
{
  // code to be executed
}
</code></pre>



<p>3. <strong>do&#8230;while loop</strong>: The do&#8230;while loop is similar to the while loop, except that it always executes the code block at least once before checking the condition.</p>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>do {
  // code to be executed
} while (condition);
</code></pre>



<ol class="wp-block-list" start="4">
<li><strong>forEach loop</strong>: The forEach loop is used to iterate over an array or other iterable object and execute a function for each element.</li>
</ol>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>array.forEach(function(item, index) 
{
  // code to be executed
});
</code></pre>



<ol class="wp-block-list" start="5">
<li><strong>For-in loop</strong>: The for-in loop is used to iterate over the properties of an object. </li>
</ol>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>for (variable in object) 
{
  // code to be executed
}
</code></pre>



<p>6<strong>. For-of loop:</strong> The for-of loop is used to iterate over the values of an iterable object, such as an array or a string. </p>



<p><strong>Syntax:</strong></p>



<pre class="wp-block-code"><code>for (variable of object) 
{
  // code to be executed
}
</code></pre>



<h2 class="wp-block-heading">JavaScript Functions</h2>



<p>JavaScript functions are blocks of code that can be defined and executed whenever needed.&nbsp;A function in JavaScript is a reusable block of code that performs a specific task. You can call a function multiple times, and it will execute the same set of instructions each time. Functions can also take arguments and return a value.</p>



<p>Example of a function that takes two arguments (num1 and num2) and returns their sum:</p>



<pre class="wp-block-code"><code>function addNumbers(num1, num2) 
{
  return num1 + num2;
}
</code></pre>



<p>To call this function and pass in two numbers, you would do something like this:</p>



<pre class="wp-block-code"><code>let result = addNumbers(5, 10);
console.log(result); // Output: 15
</code></pre>



<h2 class="wp-block-heading"><br></h2>
<p>The post <a href="https://www.aiuniverse.xyz/javascript-basics/">JavaScript Basics</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/javascript-basics/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JavaScript Tutorials</title>
		<link>https://www.aiuniverse.xyz/javascript-tutorials/</link>
					<comments>https://www.aiuniverse.xyz/javascript-tutorials/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Mon, 03 Apr 2023 06:25:05 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[ECMA script versions]]></category>
		<category><![CDATA[features of javascript]]></category>
		<category><![CDATA[how to execute javascript]]></category>
		<category><![CDATA[javascript execution process]]></category>
		<category><![CDATA[what is ecmasctipt]]></category>
		<category><![CDATA[What is javascript]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=16291</guid>

					<description><![CDATA[<p>What is JavaScript ? JavaScript is a dynamic, high-level, interpreted programming language that is widely used for creating interactive web pages and web applications. It was originally <a class="read-more-link" href="https://www.aiuniverse.xyz/javascript-tutorials/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/javascript-tutorials/">JavaScript Tutorials</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">What is JavaScript ?</h2>



<p>JavaScript is a dynamic, high-level, interpreted programming language that is widely used for creating interactive web pages and web applications. It was originally developed by Netscape Communications Corporation in 1995 as a way to add interactive features to web pages. Since then, it has become one of the most popular programming languages, with a large and active community of developers.</p>



<ul class="wp-block-list">
<li>JavaScript is a lightweight, Object Oriented Programming language.</li>



<li>It is a scripting language for web pages and web applications.</li>



<li>It is used to add interactivity and dynamic effects to web pages.</li>



<li><strong>“.js”</strong>&nbsp;is the extension.</li>



<li>It is used in server-side development.</li>



<li>JS&nbsp;<strong>Frontend Frameworks:</strong>&nbsp;React, Angular, Vue.</li>



<li>JS&nbsp;<strong>Backend Frameworks</strong>:&nbsp;Express, Node.</li>
</ul>



<p><strong>Features of JavaScript:</strong></p>



<p>There are following features of JavaScript:</p>



<ul class="wp-block-list">
<li>JavaScript support all popular web browsers and they have provide built-in execution environments.</li>



<li>It is a light-weighted and interpreted language.</li>



<li>It is a case-sensitive language.</li>



<li>JavaScript is supportable in several operating systems including, Windows, macOS, etc.</li>



<li>It provides good control to the users over the web browsers.</li>
</ul>



<h2 class="wp-block-heading">What is ECMAScript?</h2>



<p>The full form of ECMA is European Computer Manufacturer&#8217;s Association. ECMAScript is a Standard for scripting languages such as JavaScript, JScript, etc.&nbsp;</p>



<p>ECMAScript is a standard on which JavaScript is based, It was created to ensure that different documents on JavaScript are talking about the same language.</p>



<h3 class="wp-block-heading">ECMAScript Versions:&nbsp;</h3>



<p>ECMAScript, Beginning in&nbsp;<strong>1997</strong>, JavaScript has evolved into many versions.</p>



<ul class="wp-block-list">
<li><strong>ECMAScript1</strong>&nbsp;( <strong>ES1 </strong>)&nbsp;was first released in&nbsp;<strong>1997</strong>.&nbsp;</li>



<li><strong>ECMAScript 2015</strong>&nbsp;also known as&nbsp;<strong>ES6</strong>&nbsp;was released in&nbsp;<strong>2015</strong>&nbsp;and a major revision to JavaScript was made.</li>



<li>The latest version of JavaScript will be&nbsp;<strong>ECMaScript2022 (ES13)</strong>&nbsp;in&nbsp;<strong>2022</strong>.</li>
</ul>



<h2 class="wp-block-heading">JavaScript Execution</h2>



<h3 class="wp-block-heading">Do we need to install JavaScript?</h3>



<p>The answer is&nbsp;<strong>NO</strong>, Because JavaScript is present everywhere in browsers, on your phone, etc.</p>



<h2 class="wp-block-heading">How to execute JavaScript?</h2>



<ol class="wp-block-list">
<li>JavaScript can be executed right inside one’s browser. You can open the JS console and start writing JS there.</li>



<li>JS is a runtime execute like Node.js which can be installed and used to run JavaScript code.</li>



<li>JavaScript execute by inserting it inside the &lt;script&gt; tag of an HTML document.</li>
</ol>



<h3 class="wp-block-heading">Getting Started with JavaScript</h3>



<p>To start using JavaScript, you&#8217;ll need a text editor and a web browser. There are many text editors available, such as Visual Studio Code, Sublime Text editor and Atom which are all popular choices among developers.</p>



<p>Once you have a text editor set up, you can start writing JavaScript code. To do this, you&#8217;ll need to create a new file with a .js extension and then type your code into the file. You can then save the file and open it in your web browser to see the results.</p>



<h2 class="wp-block-heading"><br></h2>
<p>The post <a href="https://www.aiuniverse.xyz/javascript-tutorials/">JavaScript Tutorials</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/javascript-tutorials/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Selenium, Java, and How to learn Online?</title>
		<link>https://www.aiuniverse.xyz/what-is-selenium-java-and-how-to-learn-online/</link>
					<comments>https://www.aiuniverse.xyz/what-is-selenium-java-and-how-to-learn-online/#respond</comments>
		
		<dc:creator><![CDATA[narayan]]></dc:creator>
		<pubDate>Tue, 05 Oct 2021 12:01:31 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[Selenium WebDriver]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15566</guid>

					<description><![CDATA[<p>Selenium is one of the most renowned open-source test automation Frameworks. Selenium allows test automation of web apps or websites across different browser operating systems. Selenium offers <a class="read-more-link" href="https://www.aiuniverse.xyz/what-is-selenium-java-and-how-to-learn-online/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-selenium-java-and-how-to-learn-online/">What is Selenium, Java, and How to learn Online?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Selenium is one of the most renowned open-source test automation Frameworks. Selenium allows test automation of web apps or websites across different browser operating systems. Selenium offers compatibility with the Multiple programming languages Fact&#8217;s Java, JavaScript, Python, D #, and More.</p>



<h4 class="wp-block-heading">Features of Selenium:</h4>



<ul class="wp-block-list"><li>Multi-Browser Compatibility.</li><li>Multiple Language Support.</li><li>Speed and Performance.</li><li>Handling of Dynamic Web Elements.</li><li>Easy to Identify and use web elements.</li></ul>



<h4 class="wp-block-heading">What is Java?</h4>



<p>Java is a programming language and computing platform first released by Sun Microsystems in 1995.<br>It is a high-level, class-based, object-oriented programming language designed to have as few implementation dependencies as possible.</p>



<h4 class="wp-block-heading">Features of Java:</h4>



<ul class="wp-block-list"><li>Java is platform-independent</li><li>Automatic Memory location</li><li>Robust</li><li>Multithreaded</li><li>Object-oriented</li><li>Secured</li><li>Distributed</li></ul>



<h4 class="wp-block-heading">Prerequisites to learn Selenium and Java:</h4>



<ul class="wp-block-list"><li>Should have a basic understanding of Java or any other object-oriented programming language.</li><li>Basic Knowledge of knowledge C#, Java, Perl, PHP, Python, and Ruby.</li><li>Should have knowledge about source code management tools like GIT and SVN.</li><li>Good knowledge of Selenium Webdriver for web testing.</li><li>Good knowledge of Selenium Webdriver for web testing.Web Technologies like HTML, CSS, XML, XPATH, DOM and JavaScript.</li></ul>



<h4 class="wp-block-heading">How Long Does it Take to Learn Selenium and Java?</h4>



<p>Typically, Selenium and Java training by DevOpsSchool will let you master the concepts in about 2 months if you dedicate 2 to 4 hours per week. The training takes place in such a way that you become proficient in almost all concepts of Selenium and Java, can easily add certification to your resume.</p>



<h4 class="wp-block-heading">How to Learn Selenium and Java?</h4>



<p>The first thing you should do before learning Selenium and Java is to ask yourself how you learn best.</p>



<p>Do you prefer online tutorials, or do you prefer online courses? Do you want to work on projects as part of a team, or are you comfortable learning at your own pace? By considering this question in advance, you will be able to better understand what kind of material you should be looking for.</p>



<p>If you are planning to learn <strong><a href="https://www.devopsschool.com/certification/selenium-with-java.html" target="_blank" rel="noreferrer noopener">Selenium and Java</a></strong>, go with <strong>DevOpsSchool </strong>institute. Will provide you with online and classroom training and certification course Programs by an expert. To get in-depth knowledge of Selenium and Java along with its various applications, check out our interactive, live-online training.</p>



<h4 class="wp-block-heading">Here you can see the Agenda of the Selenium and Java Course:</h4>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="759" height="496" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/10/selenium-java.png" alt="" class="wp-image-15567" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/10/selenium-java.png 759w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/selenium-java-300x196.png 300w" sizes="auto, (max-width: 759px) 100vw, 759px" /></figure></div>



<p>This course covers the basics of <strong>Selenium and Java</strong>, their main features. You will develop a critical understanding of why Prometheus and Grafana are useful and how they can be combined with other web development frameworks.</p>



<figure class="wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="Selenium Fundamental Tutorials Part-1 - By DevOpsSchool" width="820" height="461" src="https://www.youtube.com/embed/9o12HASgKK0?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p>However, if you want to find out more details, be sure to check out our Prometheus and Grafana course to learn more about this technology.</p>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-selenium-java-and-how-to-learn-online/">What is Selenium, Java, and How to learn Online?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/what-is-selenium-java-and-how-to-learn-online/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is TypeScript and How to Learn TypeScript Online?</title>
		<link>https://www.aiuniverse.xyz/what-is-typescript-and-how-to-learn-typescript-online/</link>
					<comments>https://www.aiuniverse.xyz/what-is-typescript-and-how-to-learn-typescript-online/#respond</comments>
		
		<dc:creator><![CDATA[narayan]]></dc:creator>
		<pubDate>Tue, 21 Sep 2021 12:24:44 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Programming Language]]></category>
		<category><![CDATA[TypeScript]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15549</guid>

					<description><![CDATA[<p>TypeScript has become an increasingly common language used by developers. This is the seventh most popular programming language used by developers. What is TypeScript? TypeScript is an <a class="read-more-link" href="https://www.aiuniverse.xyz/what-is-typescript-and-how-to-learn-typescript-online/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-typescript-and-how-to-learn-typescript-online/">What is TypeScript and How to Learn TypeScript Online?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>TypeScript has become an increasingly common language used by developers. This is the seventh most popular programming language used by developers.</p>



<h4 class="wp-block-heading">What is TypeScript?</h4>



<p>TypeScript is an open-source, typed superset of the JavaScript programming language. The typeScript was created by Microsoft in 2012 to make it easier for developers to build large, scalable applications. It is widely used by companies like Slack, Asana, and Microsoft.</p>



<p><strong>These are the main differences between JavaScript and TypeScript:</strong></p>



<ul class="wp-block-list"><li>TypeScript offers static typing, whereas JavaScript offers dynamic typing.</li><li>TypeScript uses types and interfaces.</li><li>TypeScript supports optional parameter functions, whereas JavaScript does not.</li></ul>



<h4 class="wp-block-heading">What is TypeScript Used For?</h4>



<p>TypeScript is a modern web development framework. It extends JavaScript with static type definitions. These definitions make it easier to describe how an object is structured, which increases the readability of the code.</p>



<p>This is because TypeScript only extends over JavaScript. It does not replace the framework. TypeScript code is converted to JavaScript code when it is compiled.</p>



<p>There is no need for a developer to convert their entire application to support TypeScript. At any time, TypeScript can be added to a client- or server-side application.</p>



<p>Because TypeScript is based on JavaScript, any transition will involve adding TypeScript code, rather than removing JavaScript code.</p>



<h4 class="wp-block-heading">Features of TypeScript:</h4>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/features-1-1024x390.png" alt="" class="wp-image-15552" width="597" height="226" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/features-1-1024x390.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/features-1-300x114.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/features-1-768x292.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/features-1-1536x585.png 1536w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/features-1-2048x780.png 2048w" sizes="auto, (max-width: 597px) 100vw, 597px" /></figure></div>



<h4 class="wp-block-heading">How Long Does it Take to Learn TypeScript?</h4>



<p>Assuming that you study at least an hour a day, it takes about a month to learn the basics of TypeScript. Expect to spend at least six months studying TypeScript before developing the skills needed to apply it in a professional development setting.</p>



<p>The time it takes you to learn TypeScript depends on the amount of time you devote to study. If you study full time, you will be able to learn TypeScript faster than someone who is only studying part-time</p>



<h4 class="wp-block-heading">Is TypeScript Hard to Learn?.</h4>



<p>Learning TypeScript is a little more difficult than learning Javascript. This is because TypeScript extends on JavaScript and therefore you need to have a good understanding of how JavaScript works first. But, with some practice and time, you shouldn&#8217;t have any trouble learning TypeScript.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/why-typescript.png" alt="" class="wp-image-15553" width="637" height="335" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/why-typescript.png 600w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/why-typescript-300x158.png 300w" sizes="auto, (max-width: 637px) 100vw, 637px" /></figure></div>



<h4 class="wp-block-heading">How to Learn TypeScript?</h4>



<p>So, you have decided to learn TypeScript. This is a great option. But, how can you learn TypeScript fast?</p>



<ul class="wp-block-list"><li><strong>Learn HTML, CSS, and JavaScript</strong> &#8211; Because TypeScript is built on top of JavaScript, you&#8217;ll need to learn how to code in HTML, CSS, and JavaScript before getting started.</li><li><strong>Types</strong> &#8211; This is an essential component of TypeScript, hence the name of the language. In TypeScript, types can be assigned to variables when they are declared. It allows you to write more reliable and scalable code, and also enhances the readability of your programs.</li><li><strong>Variables and Commenting</strong> &#8211; Since TypeScript and JavaScript variables and comments work differently, you should explore these two topics in depth.</li><li><strong>Functions </strong>&#8211; TypeScript provides a number of enhancements to traditional JavaScript functions. In TypeScript, you can declare a function like you would in JavaScript. But, you can also use TypeScript types as function arguments.</li><li><strong>Object-Oriented Programming</strong> &#8211; TypeScript is an object-oriented programming language and adds a variety of new features to improve JavaScript&#8217;s object-oriented features. For example, you can create classes using the &#8220;class&#8221; keyword in TypeScript.</li></ul>



<h4 class="wp-block-heading">Prerequisites for Learning TypeScript:</h4>



<p>Working knowledge of JavaScript, object-oriented programming, and the command lines is assumed. The only prerequisites are a code editor and npm, the Node.js package manager.</p>



<ul class="wp-block-list"><li>You should have a good understanding of OOP concepts.</li><li>Basic JavaScript</li><li>Basic knowledge of ES2015 JavaScript</li></ul>



<h4 class="wp-block-heading">How to Learn TypeScript Online?</h4>



<p>The first thing you should do before learning TypeScript is to ask yourself how you learn best.</p>



<p>Do you prefer online tutorials, or do you prefer online courses? Do you want to work on projects as part of a team, or are you comfortable learning on your own? By considering this question in advance, you will be able to better understand what kind of material you should be looking for.</p>



<p>If you are planning to learn <strong><a href="https://www.devopsschool.com/certification/master-in-typescript-with-nestjs.html" target="_blank" rel="noreferrer noopener">TypeScript</a></strong>, go with <strong>DevOpsSchool </strong>institute. Will provide you online and classroom training and certification course Program by an expert. To get in-depth knowledge of TypeScript along with its various applications, check out our interactive, live-online training.</p>



<h4 class="wp-block-heading">Here you can see the TypeScript Course Agenda:</h4>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="672" height="525" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/typescript-agenda.png" alt="" class="wp-image-15554" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/typescript-agenda.png 672w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/typescript-agenda-300x234.png 300w" sizes="auto, (max-width: 672px) 100vw, 672px" /></figure></div>



<p>This course covers the basics of TypeScript and its main features. You will develop a critical understanding of why TypeScript is useful and how it can be combined with other web development frameworks. You will learn about the basics of TypeScript and its advantages. Then, you&#8217;ll cover more advanced topics like integrating TypeScript with other frameworks.</p>



<p>Because TypeScript is so popular, there is an incredibly active community of developers who know how to code using TypeScript.</p>



<p>When you start learning TypeScript, you should try to join one or two developer communities. These communities are places where developers talk about their learning and answer each other&#8217;s questions.</p>



<p>Hopefully, I think this information is helpful for you.</p>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-typescript-and-how-to-learn-typescript-online/">What is TypeScript and How to Learn TypeScript Online?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/what-is-typescript-and-how-to-learn-typescript-online/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JavaScript ES6 Features</title>
		<link>https://www.aiuniverse.xyz/javascript-es6-features/</link>
					<comments>https://www.aiuniverse.xyz/javascript-es6-features/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Wed, 15 Sep 2021 13:08:56 +0000</pubDate>
				<category><![CDATA[ECMAScript]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Arrow]]></category>
		<category><![CDATA[const]]></category>
		<category><![CDATA[ES6]]></category>
		<category><![CDATA[for]]></category>
		<category><![CDATA[let]]></category>
		<category><![CDATA[variable]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15542</guid>

					<description><![CDATA[<p>What is ECMAScript 6 (or ES6) ECMAScript 2015 (or ES6) is the sixth and major edition of the ECMAScript language specification standard. It defines the standard for <a class="read-more-link" href="https://www.aiuniverse.xyz/javascript-es6-features/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/javascript-es6-features/">JavaScript ES6 Features</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">What is ECMAScript 6 (or ES6)</h2>



<p>ECMAScript 2015 (or ES6) is the sixth and major edition of the ECMAScript language specification standard. It defines the standard for the JavaScript implementation.</p>



<p>ES6 brought significant changes to the JavaScript language. It introduces several new features such as, block-scoped variables, new loop for iterating over arrays and objects, template literals, and many other enhancements to make JavaScript programming easier and more fun. In this chapter, we will discuss some of the best ES6 features that you can use in your everyday JavaScript coding.</p>



<h2 class="wp-block-heading">The <code>let</code> Keyword</h2>



<p>ES6 introduces the new&nbsp;<code>let</code>&nbsp;keyword for declaring variables. Prior to ES6, the only way to declare a variable in JavaScript was the&nbsp;<code>var</code>&nbsp;keyword. Let&#8217;s see what&#8217;s the difference between them is.</p>



<p>There are two critical differences between the <code>var</code> and <code>let</code>. Variables declared with the <code>var</code> keyword are function-scoped and hoisted at the top within its scope, whereas variables declared with <code>let</code> keyword are block-scoped (<code>{}</code>) and they are not hoisted.</p>



<p>Block scoping simply means that a new scope is created between a pair of curly brackets i.e. <code>{}</code>. Therefore, if you declare a variable with the <code>let</code> keyword inside a loop, it does not exist outside of the loop, as demonstrated in the following example:</p>



<script src="https://gist.github.com/dharmu9898/5a457ed59ef28a2c53d1b490389f5fcd.js"></script>



<p>As you can see in the above example the variable <code>i</code> in the first block is not accessible outside the <code>for</code> loop. This also enables us to reuse the same variable name multiple times as its scope is limited to the block (<code>{}</code>), which results in less variable declaration and more cleaner code.</p>



<h2 class="wp-block-heading">The <code>const</code> Keyword</h2>



<p>The new <code>const</code> keyword makes it possible to define constants. Constants are read-only, you cannot reassign new values to them. They are also block-scoped like <code>let</code>.</p>



<script src="https://gist.github.com/dharmu9898/3d4892fbca0d717530063f3fcb8f46cb.js"></script>



<h4 class="wp-block-heading">However, you can still change object properties or array elements:</h4>



<script src="https://gist.github.com/dharmu9898/228612cb17194323de5e0d78c8182b6c.js"></script>



<h2 class="wp-block-heading">The <code>for...of</code> Loop Variable</h2>



<p>The new <code>for...of</code> loop allows us to iterate over arrays or other iterable objects very easily. Also, the code inside the loop is executed for each element of the iterable object. Here&#8217;s an example:</p>



<script src="https://gist.github.com/dharmu9898/7cb21e7cd519ce2f3a5887d7fc79d699.js"></script>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1002" height="598" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/variable.jpg" alt="" class="wp-image-15543" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/variable.jpg 1002w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/variable-300x179.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/variable-768x458.jpg 768w" sizes="auto, (max-width: 1002px) 100vw, 1002px" /></figure>



<h2 class="wp-block-heading">Arrow Functions</h2>



<p>Arrow Functions are another interesting feature in ES6. It provides a more concise syntax for writing function expressions by opting out the <code>function</code> and <code>return</code> keywords.</p>



<p>Arrow functions are defined using a new syntax, the fat arrow (<code>=></code>) notation. Let&#8217;s see how it looks:</p>



<script src="https://gist.github.com/dharmu9898/f6e80a211d876bf65335c1c4e3044e19.js"></script>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1023" height="572" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/arrow.jpg" alt="" class="wp-image-15544" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/arrow.jpg 1023w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/arrow-300x168.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/arrow-768x429.jpg 768w" sizes="auto, (max-width: 1023px) 100vw, 1023px" /></figure>
<p>The post <a href="https://www.aiuniverse.xyz/javascript-es6-features/">JavaScript ES6 Features</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/javascript-es6-features/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Popup modal to all data display in JavaScript</title>
		<link>https://www.aiuniverse.xyz/how-to-popup-modal-to-all-data-display-in-javascript/</link>
					<comments>https://www.aiuniverse.xyz/how-to-popup-modal-to-all-data-display-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Mon, 30 Aug 2021 10:46:47 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[modal]]></category>
		<category><![CDATA[popup]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15519</guid>

					<description><![CDATA[<p>First let’s go to popup button in blade file Go to Popup modal in blade file add this code modal your JavaScript Go to Popup JavaScript in <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-popup-modal-to-all-data-display-in-javascript/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-popup-modal-to-all-data-display-in-javascript/">How to Popup modal to all data display in JavaScript</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="483" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popup-1024x483.jpg" alt="" class="wp-image-15520" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popup-1024x483.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popup-300x142.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popup-768x363.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popup.jpg 1341w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading"> First let’s go to popup button in blade file</h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="253" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popupbutton-1024x253.jpg" alt="" class="wp-image-15521" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popupbutton-1024x253.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popupbutton-300x74.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popupbutton-768x189.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popupbutton.jpg 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<script src="https://gist.github.com/dharmu9898/3e7ecf5dc11251fe785c35729dad891d.js"></script>



<h2 class="wp-block-heading">Go to Popup modal in blade file add this code modal  your JavaScript </h2>



<script src="https://gist.github.com/dharmu9898/211758c3f8d08248d1889bdb4c4e1ac0.js"></script>



<h2 class="wp-block-heading"> Go to Popup JavaScript in blade file add this code your JavaScript </h2>



<script src="https://gist.github.com/dharmu9898/939807c46480bc0cdc9a732264c0fb29.js"></script>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-popup-modal-to-all-data-display-in-javascript/">How to Popup modal to all data display in JavaScript</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-popup-modal-to-all-data-display-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to concatenate string in JavaScript</title>
		<link>https://www.aiuniverse.xyz/how-to-concatenate-string-in-javascript/</link>
					<comments>https://www.aiuniverse.xyz/how-to-concatenate-string-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Fri, 20 Aug 2021 06:00:11 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[blade]]></category>
		<category><![CDATA[console log]]></category>
		<category><![CDATA[inspect]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15428</guid>

					<description><![CDATA[<p>First let’s go to your Laravel project And add your blade file JavaScript And go to your Laravel project And Inspect and check you console log</p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-concatenate-string-in-javascript/">How to concatenate string in JavaScript</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="890" height="442" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/this-is-blade-file-2.jpg" alt="" class="wp-image-15429" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/this-is-blade-file-2.jpg 890w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/this-is-blade-file-2-300x149.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/this-is-blade-file-2-768x381.jpg 768w" sizes="auto, (max-width: 890px) 100vw, 890px" /></figure>



<h3 class="wp-block-heading"><strong>First let’s go to your Laravel project</strong> And add your blade file JavaScript </h3>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="526" height="130" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/java-concentined.jpg" alt="" class="wp-image-15430" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/java-concentined.jpg 526w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/java-concentined-300x74.jpg 300w" sizes="auto, (max-width: 526px) 100vw, 526px" /></figure>



<script src="https://gist.github.com/dharmu9898/c22996c8de403e075a23212a339a3e25.js"></script>



<h3 class="wp-block-heading"><strong>And go to your Laravel project</strong> And Inspect and check you console log</h3>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="231" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/console-log-1024x231.jpg" alt="" class="wp-image-15431" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/console-log-1024x231.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/console-log-300x68.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/console-log-768x173.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/console-log.jpg 1206w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-concatenate-string-in-javascript/">How to concatenate string in JavaScript</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-concatenate-string-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
