<?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 | Student Projects</title>
	<atom:link href="https://studentprojects.in/category/software-development/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Fri, 02 Jun 2023 10:33:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>Javascript &#8211; Overview</title>
		<link>https://studentprojects.in/software-development/javascript/javascript-basics/javascript-overview/</link>
					<comments>https://studentprojects.in/software-development/javascript/javascript-basics/javascript-overview/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Fri, 02 Jun 2023 10:30:59 +0000</pubDate>
				<category><![CDATA[JavaScript Basics]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=10278</guid>

					<description><![CDATA[<p>What is JavaScript? JavaScript is a popular programming language primarily used for building interactive web pages and web applications. It is a client-side scripting language, meaning it runs on the user&#8217;s web browser rather than on the server. JavaScript in HTML: To use JavaScript in an HTML file, you can include it within &#60;script> tags</p>
<p>The post <a href="https://studentprojects.in/software-development/javascript/javascript-basics/javascript-overview/">Javascript – Overview</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>What is JavaScript? </strong></p>



<p>JavaScript is a popular programming language primarily used for building interactive web pages and web applications. It is a client-side scripting language, meaning it runs on the user&#8217;s web browser rather than on the server.</p>



<p><strong>JavaScript in HTML: </strong></p>



<p>To use JavaScript in an HTML file, you can include it within <code>&lt;script></code> tags in the <code>&lt;head></code> or <code>&lt;body></code> section. For example:</p>



<pre class="wp-block-code"><code lang="markup" class="language-markup">&lt;!DOCTYPE html>
&lt;html>
&lt;head>
  &lt;title>JavaScript Tutorial&lt;/title>
  &lt;script>
    // JavaScript code goes here
  &lt;/script>
&lt;/head>
&lt;body>
  &lt;!-- HTML content -->
&lt;/body>
&lt;/html></code></pre>



<p><strong>Variables and Data Types: </strong></p>



<p>JavaScript uses dynamic typing, meaning you don&#8217;t need to specify a variable&#8217;s type explicitly. You can declare variables using the <code>var</code>, <code>let</code>, or <code>const</code> keywords. JavaScript has several built-in data types, including numbers, strings, booleans, arrays, objects, and more.</p>



<p><strong>Operators: </strong></p>



<p>JavaScript supports various operators, such as arithmetic operators (<code>+</code>, <code>-</code>, <code>*</code>, <code>/</code>), assignment operators (<code>=</code>, <code>+=</code>, <code>-=</code>, etc.), comparison operators (<code>==</code>, <code>!=</code>, <code>></code>, <code>&lt;</code>, etc.), logical operators (<code>&amp;&amp;</code>, <code>||</code>, <code>!</code>), and more.</p>



<p><strong>Control Flow: </strong></p>



<p>JavaScript provides conditional statements like <code>if</code>, <code>else if</code>, <code>else</code>, as well as loops like <code>for</code>, <code>while</code>, and <code>do...while</code>. These control flow structures allow you to make decisions and repeat blocks of code based on certain conditions.</p>



<p><strong>Functions: </strong></p>



<p>Functions in JavaScript allow you to define reusable blocks of code. You can create functions using the <code>function</code> keyword. JavaScript also supports anonymous functions and arrow functions.</p>



<p><strong>Arrays and Objects: </strong></p>



<p>Arrays are used to store multiple values in a single variable, while objects are used to represent complex data structures. Arrays can be created using square brackets (<code>[]</code>), and objects use curly brackets (<code>{}</code>). Both arrays and objects can contain values of different data types.</p>



<p><strong>DOM Manipulation: </strong></p>



<p>The Document Object Model (DOM) represents the structure of an HTML document. JavaScript allows you to manipulate the DOM to modify or interact with HTML elements dynamically. You can access and modify HTML elements, styles, attributes, and event handlers using JavaScript.</p>



<p><strong>Events: </strong></p>



<p>JavaScript enables you to handle various events that occur in the browser, such as button clicks, mouse movements, form submissions, etc. You can attach event listeners to HTML elements and specify the code to be executed when the event occurs.</p>



<p><strong>AJAX and Fetch: </strong></p>



<p>JavaScript provides mechanisms like AJAX (Asynchronous JavaScript and XML) and the Fetch API to make asynchronous requests to servers, retrieve data, and update parts of a web page without reloading the entire page.</p>



<p>This is just a brief overview of JavaScript. There&#8217;s much more to learn, including advanced topics like closures, prototypes, error handling, modules, and frameworks/libraries like Node.js, React, and Angular. I encourage you to explore further and practice coding to become proficient in JavaScript programming.</p><p>The post <a href="https://studentprojects.in/software-development/javascript/javascript-basics/javascript-overview/">Javascript – Overview</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/javascript/javascript-basics/javascript-overview/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>History of Java:</title>
		<link>https://studentprojects.in/software-development/javascript/history-of-java/</link>
					<comments>https://studentprojects.in/software-development/javascript/history-of-java/#respond</comments>
		
		<dc:creator><![CDATA[Shubhajna Rai]]></dc:creator>
		<pubDate>Thu, 16 Feb 2023 10:34:27 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=10182</guid>

					<description><![CDATA[<p>Java was created by James Gosling in 1995 while working on a project named Greentalk for the television industry. The project was later renamed to OAK, named after the oak tree outside Gosling&#8217;s office. However, this name had to be dropped due to trademark issues. The team then considered several names before finally settling on</p>
<p>The post <a href="https://studentprojects.in/software-development/javascript/history-of-java/">History of Java:</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Java was created by James Gosling in 1995 while working on a project named Greentalk for the television industry. The project was later renamed to OAK, named after the oak tree outside Gosling&#8217;s office. However, this name had to be dropped due to trademark issues. The team then considered several names before finally settling on Java, inspired by a cup of coffee.</p>



<p>Types of Java Applications:</p>



<ol>
<li>Web Application: These run on a web browser and are created using servlets, JSP, and struts technologies.</li>



<li>Mobile Application: Java-based mobile applications.</li>



<li>Standalone Application: Applications that can run independently, such as antivirus software.</li>



<li>Enterprise Application: Designed for corporate organizations to manage major processes in real-time.</li>
</ol>



<p>Features of Java:</p>



<ul>
<li>Object-Oriented: Java is based on the object-oriented programming model.</li>



<li>Simple: Easy to understand and implement.</li>



<li>Secured: Java provides a secure platform for software development.</li>



<li>Platform-Independent: Java code can be written once and executed on any hardware or software system.</li>



<li>Portable: Java code can be used on any platform.</li>



<li>Architecture Neutral: Java is neutral to the architecture and the size of primitive types is fixed.</li>



<li>Robust: Java emphasizes error handling, type checking, and memory management.</li>



<li>Interpreted: Java code is translated into Assembly Language.</li>



<li>Distributed: Java supports the creation of distributed applications that can run on multiple computers simultaneously.</li>



<li>Dynamic: Java is designed to adapt to changing systems.</li>



<li>Multi-threaded: Java supports multi-threading for web application development.</li>



<li>High-Performance: Java uses a Just-In-Time compiler for improved performance.</li>
</ul><p>The post <a href="https://studentprojects.in/software-development/javascript/history-of-java/">History of Java:</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/javascript/history-of-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to get yesterday&#8217;s date using JavaScript</title>
		<link>https://studentprojects.in/software-development/javascript/javascript-tricks/how-to-get-yesterdays-date-using-javascript/</link>
					<comments>https://studentprojects.in/software-development/javascript/javascript-tricks/how-to-get-yesterdays-date-using-javascript/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sat, 12 Mar 2022 17:52:58 +0000</pubDate>
				<category><![CDATA[JavaScript Tricks]]></category>
		<category><![CDATA[Date & Time]]></category>
		<category><![CDATA[Epoch time]]></category>
		<category><![CDATA[yesterday date]]></category>
		<category><![CDATA[js date]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8690</guid>

					<description><![CDATA[<p>It is very simple! Find today&#8217;s date and subtract by one to get yesterday&#8217;s date. Here is the code: Output new Date() will fetch the current date and time. Pass it to setDate() function along with minus 1 to fetch today&#8217;s date. You can use setUTCHours() and pass 0 to set the time 0.</p>
<p>The post <a href="https://studentprojects.in/software-development/javascript/javascript-tricks/how-to-get-yesterdays-date-using-javascript/">How to get yesterday’s date using JavaScript</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>It is very simple!</p>



<p>Find today&#8217;s date and subtract by one to get yesterday&#8217;s date. </p>



<p><strong>Here is the code:</strong></p>



<pre class="wp-block-code"><code lang="javascript" class="language-javascript">const today = new Date();
const yesterday = new Date();
yesterday.setDate(today.getDate() - 1);

console.log('Today\'s date &amp; time: ', today);
console.log('Yesterday\'s date &amp; time: ', yesterday);
console.log('');
console.log('Today\'s date: ', today.toDateString());
console.log('Yesterday\'s date: ', yesterday.toDateString());
console.log('');
console.log('Today\'s Epoch time: ', today.getTime());
console.log('Yesterday\'s Epoch time: ', yesterday.getTime());</code></pre>



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



<pre class="wp-block-code"><code class="">Today's date &amp; time:  2022-03-12T17:45:29.734Z
Yesterday's date &amp; time:  2022-03-11T17:45:29.734Z

Today's date:  Sat Mar 12 2022
Yesterday's date:  Fri Mar 11 2022

Today's Epoch time:  1647107129734
Yesterday's Epoch time:  1647020729734</code></pre>



<p>new Date() will fetch the current date and time. Pass it to setDate() function along with minus 1 to fetch today&#8217;s date. You can use setUTCHours() and pass 0 to set the time 0.</p>



<pre class="wp-block-code"><code class="">today.setUTCHours(0, 0, 0, 0);</code></pre>



<pre class="wp-block-code"><code class="">Today's date &amp; time:  2022-03-12T00:00:00.000Z</code></pre><p>The post <a href="https://studentprojects.in/software-development/javascript/javascript-tricks/how-to-get-yesterdays-date-using-javascript/">How to get yesterday’s date using JavaScript</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/javascript/javascript-tricks/how-to-get-yesterdays-date-using-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to convert a sentence to a Title case in JavaScript</title>
		<link>https://studentprojects.in/software-development/javascript/javascript-tricks/how-to-convert-a-sentence-to-a-title-case-in-javascript/</link>
					<comments>https://studentprojects.in/software-development/javascript/javascript-tricks/how-to-convert-a-sentence-to-a-title-case-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 10 Mar 2022 18:34:42 +0000</pubDate>
				<category><![CDATA[JavaScript Tricks]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Title case]]></category>
		<category><![CDATA[Regular expression]]></category>
		<category><![CDATA[RegEx]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8622</guid>

					<description><![CDATA[<p>Title case is any text, such as in a title or heading, where the first letter of words is capitalized. So we can achieve this by changing the first element of every word in a sentence to uppercase while leaving the other elements in lowercase. Output</p>
<p>The post <a href="https://studentprojects.in/software-development/javascript/javascript-tricks/how-to-convert-a-sentence-to-a-title-case-in-javascript/">How to convert a sentence to a Title case in JavaScript</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Title case is any text, such as in a title or heading, where the first letter of words is capitalized. So we can achieve this by changing the first element of every word in a sentence to uppercase while leaving the other elements in lowercase.</p>



<pre class="wp-block-code"><code lang="javascript" class="language-javascript">function toTitleCase(string) {
  if (string === null || string === '') {
    return '';
  }
  return string.replace(/\w\S*/g, function (txt) {
    return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
  });
}

const output = toTitleCase("javascript is very easy to learn");
console.log(output);</code></pre>



<p>Output</p>



<pre class="wp-block-code"><code class="">Javascript Is Very Easy To Learn</code></pre>



<p></p><p>The post <a href="https://studentprojects.in/software-development/javascript/javascript-tricks/how-to-convert-a-sentence-to-a-title-case-in-javascript/">How to convert a sentence to a Title case in JavaScript</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/javascript/javascript-tricks/how-to-convert-a-sentence-to-a-title-case-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
