<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yahyah Ridwanullahi olanrewaju</title>
    <description>The latest articles on DEV Community by Yahyah Ridwanullahi olanrewaju (@whitecoode).</description>
    <link>https://dev.to/whitecoode</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F591692%2F94f3b055-6cd5-4cfc-a1bf-6fd2eb6a5e8f.png</url>
      <title>DEV Community: Yahyah Ridwanullahi olanrewaju</title>
      <link>https://dev.to/whitecoode</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/whitecoode"/>
    <language>en</language>
    <item>
      <title>Move from been a Novice in JavaScript to Beginner in just 3weeks of JavaScript.</title>
      <dc:creator>Yahyah Ridwanullahi olanrewaju</dc:creator>
      <pubDate>Wed, 07 Jun 2023 22:33:36 +0000</pubDate>
      <link>https://dev.to/whitecoode/move-from-been-a-novice-in-javascript-to-beginner-in-just-3weeks-of-javascript-5f51</link>
      <guid>https://dev.to/whitecoode/move-from-been-a-novice-in-javascript-to-beginner-in-just-3weeks-of-javascript-5f51</guid>
      <description>&lt;p&gt;Hello dear, my name is Ridwanullahi known as whitecoode. I am a software developer, in this part of the lecture which marks the first part of the article we will be learning the introduction to &lt;strong&gt;javaScript&lt;/strong&gt;, what can &lt;strong&gt;JavaScript&lt;/strong&gt; be use for, and few examples. Now let get started;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is JavaScript and what is it use for?&lt;/strong&gt;&lt;br&gt;
JavaScript is a scripting or programming language that allows you to implement complex features on web pages. It is a dynamic programming language that’s used for web development, in web applications, for game development, mobile application, Artificial intelligent (AI), desktop application and lots more. It allows you to implement dynamic features on web pages that cannot be done with only HTML and CSS. Example of where you can see a quick &lt;strong&gt;JavaScript&lt;/strong&gt; functionality, you should try to click on the hamburger(☰) icons on your mobile view and if you are on a desktop try to collapse your window and resize it to mobile size to see the magic of &lt;strong&gt;JavaScript.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now after we have know what JavaScript is all about, let's talk about JavaScript &lt;strong&gt;where-to&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JavaScript Where-to&lt;/strong&gt;&lt;br&gt;
I assume we have knowledge about HTML, so I am not going to talk about it in this section. JavaScript where-to means where are we going to write our JavaScript code or where can we write JavaScript code. A JavaScript code can be written between an internal script tag or external script file. &lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
Internal Script tag&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;script&amp;gt;//JavaScript code goes here&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; &lt;em&gt;Internal Script tag can be placed in the , or in the  section of an HTML page, or in both.&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Introduction to Javascript&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h2&amp;gt;Demo JavaScript in Head&amp;lt;/h2&amp;gt;
&amp;lt;script&amp;gt;
//JavaScript Code 
&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OR&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;script&amp;gt;
//JavaScript Code 
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h2&amp;gt;Demo JavaScript in Head&amp;lt;/h2&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;External File (Script) means writing JavaScript in an external file by creating a script file, example create a &lt;code&gt;script.js&lt;/code&gt; file in your visual studio code editor. Now that you have create the file you have successfully create an external script file for a JavaScript Script file. &lt;br&gt;
   External Script has a lot of advantage over the internal script, some of them are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It separates HTML from JavaScript code.&lt;/li&gt;
&lt;li&gt;It makes HTML and JavaScript easier to read and maintain&lt;/li&gt;
&lt;li&gt;Its even speed up the page loads.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After creating the external script you now need to import to your HTML code using the same script tag but with additional attribute, &lt;code&gt;&amp;lt;script src="script.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;. Now we have successfully import or link our JavaScript code to our HTML code, so let start writing some cool code which is our first JavaScript code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JavaScript variables&lt;/strong&gt;&lt;br&gt;
variables are containers for storing data. There are three(3) best way to declare a variable in javaScript which are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;With &lt;code&gt;var&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;With &lt;code&gt;let&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;With &lt;code&gt;const&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After we know what variables are we can now learn about how we can use them. But before that we need to understand &lt;strong&gt;statement&lt;/strong&gt;. &lt;br&gt;
    A statements are set of instructions to be executed by the computer to perform a specific task. A statement compose of &lt;code&gt;Values, Operators, Expressions, Keywords, and Comments.&lt;/code&gt; Below is the syntax of how is looks like in real world:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var name = "whitecoode"; // decaling a variable
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation: The &lt;code&gt;var&lt;/code&gt; is a keyword, the &lt;code&gt;name&lt;/code&gt; is the variable name, the &lt;code&gt;=&lt;/code&gt; is an expression(assignment operator), the &lt;code&gt;whitecoode&lt;/code&gt; is the value assigned to the &lt;code&gt;name&lt;/code&gt;, the &lt;code&gt;;&lt;/code&gt;(semi-colons) separate JavaScript statement and &lt;code&gt;// decaling a variable&lt;/code&gt; this is a comment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Work to do&lt;/strong&gt;&lt;br&gt;
Create a JavaScript statement give the value of &lt;code&gt;Hello! coode.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;We will stopping here for awhile so take some rest and see you in the next part.&lt;/p&gt;

&lt;p&gt;Follow me!!! to &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
