JavaScript Introduction

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 49

<!

DOCTYPE html>
<!-- saved from url=(0041)https://www.w3schools.com/js/js_intro.asp -->
<html lang="en-US"><head><meta http-equiv="Content-Type" content="text/html;
charset=UTF-8"><script async="" src="./JavaScript
Introduction_files/wrap.js.download"></script><script type="text/javascript"
async="" src="./JavaScript Introduction_files/localstore.js.download"></script>
<title>JavaScript Introduction</title>

<meta name="viewport" content="width=device-width, initial-scale=1">


<meta name="Keywords" content="HTML, Python, CSS, SQL, JavaScript, How to, PHP,
Java, C, C++, C#, jQuery, Bootstrap, Colors, W3.CSS, XML, MySQL, Icons, NodeJS,
React, Graphics, Angular, R, AI, Git, Data Science, Code Game, Tutorials,
Programming, Web Development, Training, Learning, Quiz, Exercises, Courses,
Lessons, References, Examples, Learn to code, Source code, Demos, Tips, Website">
<meta name="Description" content="Well organized and easy to understand Web
building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL,
Python, PHP, Bootstrap, Java, XML and more.">
<meta property="og:image"
content="https://www.w3schools.com/images/w3schools_logo_436_2.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="436">
<meta property="og:image:height" content="228">
<meta property="og:description" content="W3Schools offers free online tutorials,
references and exercises in all the major languages of the web. Covering popular
subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.">
<link rel="icon" href="https://www.w3schools.com/favicon.ico" type="image/x-icon">
<link rel="preload" href="https://www.w3schools.com/lib/fonts/fontawesome.woff2?
14663396" as="font" type="font/woff2" crossorigin="">
<link rel="preload" href="https://www.w3schools.com/lib/fonts/source-code-pro-v14-
latin-regular.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="preload" href="https://www.w3schools.com/lib/fonts/roboto-mono-v13-
latin-500.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="preload" href="https://www.w3schools.com/lib/fonts/source-sans-pro-v14-
latin-700.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="preload" href="https://www.w3schools.com/lib/fonts/source-sans-pro-v14-
latin-600.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="preload" href="https://www.w3schools.com/lib/fonts/freckle-face-v9-
latin-regular.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="stylesheet" href="./JavaScript Introduction_files/w3schools31.css">

<!-- Google Tag Manager -->


<script type="text/javascript" src="./JavaScript
Introduction_files/config.js.download" async=""></script><script
type="text/javascript" async="" src="./JavaScript
Introduction_files/analytics.js.download"></script><script type="text/javascript"
async="" src="./JavaScript Introduction_files/js"></script><script async=""
src="./JavaScript Introduction_files/gtm.js.download"></script><script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KTCFC3S');

var subjectFolder = location.pathname;


subjectFolder = subjectFolder.replace("/", "");
if (subjectFolder.startsWith("python/") == true ) {
if (subjectFolder.includes("/numpy/") == true ) {
subjectFolder = "numpy/"
} else if (subjectFolder.includes("/pandas/") == true ) {
subjectFolder = "pandas/"
} else if (subjectFolder.includes("/scipy/") == true ) {
subjectFolder = "scipy/"
}
}
subjectFolder = subjectFolder.substr(0, subjectFolder.indexOf("/"));
</script>
<!-- End Google Tag Manager -->

<script src="./JavaScript Introduction_files/uic.js.download"></script>


<script data-cfasync="false" type="text/javascript">
var k42 = false;

k42 = true;

</script>
<script data-cfasync="false" type="text/javascript">
window.snigelPubConf = {
"adengine": {

"activeAdUnits": ["main_leaderboard", "sidebar_top", "bottom_left",


"bottom_right"]

}
}
uic_r_a()
</script>
<script async="" data-cfasync="false" src="./JavaScript
Introduction_files/loader.js.download" type="text/javascript"></script>
<script src="./JavaScript Introduction_files/common-deps.js.download"></script>
<script src="./JavaScript Introduction_files/user-session.js.download"></script>
<script src="./JavaScript Introduction_files/my-learning.js.download"></script>
<script type="text/javascript">
var stickyadstatus = "";
function fix_stickyad() {
document.getElementById("stickypos").style.position = "sticky";
var elem = document.getElementById("stickyadcontainer");
if (!elem) {return false;}
if (document.getElementById("skyscraper")) {
var skyWidth = Number(w3_getStyleValue(document.getElementById("skyscraper"),
"width").replace("px", ""));
}
else {
var skyWidth = Number(w3_getStyleValue(document.getElementById("right"),
"width").replace("px", ""));
}
elem.style.width = skyWidth + "px";
if (window.innerWidth <= 992) {
elem.style.position = "";
elem.style.top = stickypos + "px";
return false;
}
var stickypos = document.getElementById("stickypos").offsetTop;
var docTop = window.pageYOffset || document.documentElement.scrollTop ||
document.body.scrollTop;
var adHeight = Number(w3_getStyleValue(elem, "height").replace("px", ""));
if (stickyadstatus == "") {
if ((stickypos - docTop) < 60) {
elem.style.position = "fixed";
elem.style.top = "60px";
stickyadstatus = "sticky";
document.getElementById("stickypos").style.position = "sticky";

}
} else {
if ((docTop + 60) - stickypos < 0) {
elem.style.position = "";
elem.style.top = stickypos + "px";
stickyadstatus = "";
document.getElementById("stickypos").style.position = "static";
}
}
if (stickyadstatus == "sticky") {
if ((docTop + adHeight + 60) > document.getElementById("footer").offsetTop) {
elem.style.position = "absolute";
elem.style.top = (document.getElementById("footer").offsetTop - adHeight) +
"px";
document.getElementById("stickypos").style.position = "static";
} else {
elem.style.position = "fixed";
elem.style.top = "60px";
stickyadstatus = "sticky";
document.getElementById("stickypos").style.position = "sticky";
}
}
}
function w3_getStyleValue(elmnt,style) {
if (window.getComputedStyle) {
return window.getComputedStyle(elmnt,null).getPropertyValue(style);
} else {
return elmnt.currentStyle[style];
}
}
</script>

<script type="text/javascript" async="" src="./JavaScript


Introduction_files/prebid.js.download"></script><script type="text/javascript"
async="" src="./JavaScript Introduction_files/apstag.js.download"></script><script
type="text/javascript" async="" src="./JavaScript
Introduction_files/f(6).txt"></script><script type="text/javascript" async=""
src="./JavaScript Introduction_files/adngin.js.download"></script><script
type="text/javascript" async="" src="./JavaScript
Introduction_files/argus.js.download"></script><style>#timelines-ext {
position: fixed;
top: 0;
height: 0;
z-index: 2147483645;
overflow: visible;
}

.timelines-ext-right{
right: 0;
}

#timelines-ext *::-webkit-scrollbar {
display: block;
width: 8px;
height: 8px;
}

#timelines-ext *::-webkit-scrollbar-track {
background: #ECF0F5;
}

#timelines-ext *::-webkit-scrollbar-thumb {
background: #A5A5A5;
}</style><style data-styled="active" data-styled-version="5.3.6"></style><meta
http-equiv="origin-trial"
content="A0VQgOQvA+kwCj319NCwgf8+syUgEQ8/LLpB8RxxlRC3AkJ9xx8IAvVuQ/
dcwy0ok7sGKufLLu6WhsXbQR9/
UwwAAACFeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiUHJpdmF
jeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjg4MDgzMTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaG
lyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial"
content="A6kRo9zXJhOvsR4D/VeZ9CiApPAxnOGzBkW88d8eIt9ex2oOzlX+AoUk/
BS50Y9Ysy2jwyHR49Mb7XwP+l9yygIAAACLeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9u
LmNvbTo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjg4MDgzMTk
5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-
equiv="origin-trial"
content="A3mbHZoS4VJtJ8j1aE8+Z9vaGf/oMV1eTNIWMrvGqWgNnOmvaxnRGliqKIZU2eiTzCj5Qpz8B1
/
UTTLuony5bAAAAACLeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXRhZ3NlcnZpY2VzLmNvbTo0NDMiLCJmZW
F0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjg4MDgzMTk5LCJpc1N1YmRvbWFpb
iI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial"
content="As0hBNJ8h+
+fNYlkq8cTye2qDLyom8NddByiVytXGGD0YVE+2CEuTCpqXMDxdhOMILKoaiaYifwEvCRlJ/
9GcQ8AAAB8eyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiV2ViV
mlld1hSZXF1ZXN0ZWRXaXRoRGVwcmVjYXRpb24iLCJleHBpcnkiOjE3MTk1MzI3OTksImlzU3ViZG9tYWlu
Ijp0cnVlfQ=="><meta http-equiv="origin-trial"
content="AgRYsXo24ypxC89CJanC+JgEmraCCBebKl8ZmG7Tj5oJNx0cmH0NtNRZs3NB5ubhpbX/
bIt7l2zJOSyO64NGmwMAAACCeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDM
iLCJmZWF0dXJlIjoiV2ViVmlld1hSZXF1ZXN0ZWRXaXRoRGVwcmVjYXRpb24iLCJleHBpcnkiOjE3MTk1Mz
I3OTksImlzU3ViZG9tYWluIjp0cnVlfQ=="><script src="./JavaScript
Introduction_files/f(7).txt"
async=""></script><argprec0></argprec0><argprec1></argprec1><style
type="text/css">.snigel-cmp-framework .sn-inner {background-color:#fffefe!
important;}.snigel-cmp-framework .sn-b-def {border-color:#04aa6d!
important;color:#04aa6d!important;}.snigel-cmp-framework .sn-b-def.sn-blue
{color:#ffffff!important;background-color:#04aa6d!important;border-color:#04aa6d!
important;}.snigel-cmp-framework .sn-selector ul li {color:#04aa6d!
important;}.snigel-cmp-framework .sn-selector ul li:after {background-
color:#04aa6d!important;}.snigel-cmp-framework .sn-footer-tab .sn-privacy a
{color:#04aa6d!important;}.snigel-cmp-framework .sn-arrow:after,.snigel-cmp-
framework .sn-arrow:before {background-color:#04aa6d!important;}.snigel-cmp-
framework .sn-switch input:checked + span::before {background-color:#04aa6d!
important;}#adconsent-usp-link {border: 1px solid #04aa6d!important;color:#04aa6d!
important;}#adconsent-usp-banner-optout input:checked + .adconsent-usp-slider
{background-color:#04aa6d!important;}#adconsent-usp-banner-btn
{color:#ffffff;border: solid 1px #04aa6d!important;background-color:#04aa6d!
important; }</style><style type="text/css">.sn_ad_label{height:unset
!important}</style><script src="./JavaScript
Introduction_files/pubcid.min.js.download"></script><script src="./JavaScript
Introduction_files/id5-api.js.download"></script><iframe name="cnftComm"
style="display: none;" src="./JavaScript
Introduction_files/saved_resource(1).html"></iframe><link rel="preload"
href="./JavaScript Introduction_files/f(8).txt" as="script"><script
type="text/javascript" src="./JavaScript
Introduction_files/f(8).txt"></script><link rel="preload" href="./JavaScript
Introduction_files/f(9).txt" as="script"><script type="text/javascript"
src="./JavaScript Introduction_files/f(9).txt"></script><script esp-signal="true"
src="./JavaScript
Introduction_files/uid2SecureSignal.js.download"></script></head><body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KTCFC3S"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<style>
#darkmodemenu {
position:absolute;
top:-40px;
right:16px;
padding:5px 20px 10px 18px;
border-bottom-left-radius:5px;
border-bottom-right-radius:5px;
z-index:-1;
transition: top 0.2s;
user-select: none;
}
#darkmodemenu input,#darkmodemenu label {
cursor:pointer;
}
</style>
<script>
(
function setThemeMode() {
var x = localStorage.getItem("preferredmode");
var y = localStorage.getItem("preferredpagemode");
if (x == "dark") {
document.body.className += " darktheme";
}
if (y == "dark") {
document.body.className += " darkpagetheme";
}
})();
</script>
<div id="pagetop" class="w3-bar w3-card-2 notranslate">
<a href="https://www.w3schools.com/" class="w3-bar-item w3-button w3-hover-none
w3-left w3-padding-16 ga-top" title="Home" style="width:77px">
<i class="fa fa-logo ws-text-green ws-hover-text-green"
style="position:relative;font-size:42px!important;"></i>
</a>

<style>
.topnavmain_pro {
background-color:#9763f6;
color:#fff;
}
.topnavmain_pro:hover {
background-color:#7d53cc!important;
color:#fff!important;
}

@media screen and (max-width: 1160px) {


.ws-hide-1160 {
display: none !important;
}
}
@media screen and (max-width: 1300px) {
.ws-hide-1300 {
display: none !important;
}
}
@media screen and (max-width: 1350px) {
.ws-hide-1350 {
display: none !important;
}
}
@media screen and (max-width: 700px) {
.ws-hide-700 {
display: none !important;
}
}
@media screen and (max-width:380px) {
#w3loginbtn {
width:90px!important;
padding-left:2px!important;
padding-right:2px;
}
#signupbtn_topnav,#spacesbtn_topnav {
display:none!important;
}
}

</style>

<a class="w3-bar-item w3-button w3-hide-small barex bar-item-hover w3-padding-24


ga-top" href="javascript:void(0)" onclick="w3_open_nav(&#39;tutorials&#39;)"
id="navbtn_tutorials" title="Tutorials" style="width:116px">Tutorials <i class="fa
fa-caret-down" style="font-size: 20px; display: inline;"></i><i class="fa fa-caret-
up" style="display:none"></i></a>
<a class="w3-bar-item w3-button w3-hide-small barex bar-item-hover w3-padding-24
ga-top" href="javascript:void(0)" onclick="w3_open_nav(&#39;references&#39;)"
id="navbtn_references" title="References" style="width:132px">References <i
class="fa fa-caret-down" style="font-size: 20px; display: inline;"></i><i class="fa
fa-caret-up" style="display:none"></i></a>
<a class="w3-bar-item w3-button w3-hide-small barex bar-item-hover w3-padding-24
ga-top ws-hide-800" href="javascript:void(0)"
onclick="w3_open_nav(&#39;exercises&#39;)" id="navbtn_exercises" title="Exercises"
style="width:118px">Exercises <i class="fa fa-caret-down" style="font-size: 20px;
display: inline;"></i><i class="fa fa-caret-up" style="display:none"></i></a>

<a class="w3-bar-item w3-button bar-item-hover w3-padding-24 barex ws-hide-1300


ga-top" href="https://www.w3schools.com/bootcamp/index.php" title="Web Development
Bootcamp">Bootcamp</a>
<a class="w3-bar-item w3-button bar-item-hover w3-padding-24 barex ws-hide-1350
ga-top" href="https://www.w3schools.com/videos/index.php" title="Video
Tutorials">Videos</a>

<a class="w3-bar-item w3-button bar-item-hover w3-padding-24 ga-top"


href="javascript:void(0)" onclick="w3_open()" id="navbtn_menu" title="Menu"
style="width:93px">Menu <i class="fa fa-caret-down"></i><i class="fa fa-caret-up"
style="display:none"></i></a>

<div id="loginactioncontainer" class="w3-right w3-padding-16" style="margin-


left:1px;width:55px">
<div id="mypagediv" style="display: block;">&nbsp;<a
href="https://profile.w3schools.com/log-in?redirect_url=https%3A%2F%2Fmy-
learning.w3schools.com%2F"><img src="./JavaScript
Introduction_files/mypagelogo32x32.png" alt="MYPAGE"
style="position:absolute;top:18px;right:28px"><svg
style="position:absolute;top:0;right:0;height:70px;width:70px"><path
id="mypage_circle1" fill="none" stroke="rgba(76, 175, 80, 0.1)" stroke-width="4"
d="M 25.995811209816477 11.000000365540902 A 24 24 0 1 0 26 11"></path><path
id="mypage_circle2" fill="none" stroke="rgba(76, 175, 80, 1)" stroke-width="4" d="M
31.968557291956518 11.754004132912854 A 24 24 0 0 0 26 11"></path></svg></a></div>
<a id="w3loginbtn" title="Login to your account" class="w3-bar-item w3-btn
bar-item-hover w3-right ws-light-green ga-top"
style="display:none;width:112px;background-color:white;color:black;padding-
left:39px;position:relative;z-index:4;border-radius:25px;"
href="https://profile.w3schools.com/log-in?redirect_url=https%3A%2F%2Fmy-
learning.w3schools.com" target="_self">Log in</a>
</div>

<div class="w3-right w3-padding-16">


<a id="spacesbtn_topnav" style="display: block; width: 93px; border-radius:
25px; margin-right: 20px;" class="w3-bar-item w3-button w3-right w3x-hide-small
barex ws-green ws-hover-green ga-top" href="https://spaces.w3schools.com/"
title="Go to Your Space">Spaces</a>
<a id="signupbtn_topnav" class="w3-bar-item w3-button w3-right barex ws-green
ws-hover-green ga-top" style="width: 93px; border-radius: 25px; margin-right: 20px;
position: relative; z-index: 5; display: none;"
href="https://www.w3schools.com/signup/index.html" title="Sign Up to Improve Your
Learning Experience">Sign Up</a>
<a class="w3-bar-item w3-button w3-right ws-hide-1066 w3-hide-small barex ws-
yellow ws-hover-yellow ga-top" style="width: 150px;border-radius: 25px; margin-
right: 15px;" href="https://www.w3schools.com/spaces/index.html" title="Get Your
Own Website With W3Schools Spaces">Create Website</a>
<a class="w3-bar-item w3-button w3-right ws-hide-900 w3-hide-small barex ws-
pink ws-hover-pink ga-top" style="border-radius: 25px; margin-right: 15px;"
href="https://shop.w3schools.com/collections/course-catalog" target="_blank"
id="cert_navbtn" title="Courses">Get Certified</a>
<a class="w3-bar-item w3-button w3-right w3-hide-small ws-hide-1160 barex
topnavmain_pro ga-top" style="border-radius: 25px; margin-right: 15px;"
href="https://www.w3schools.com/pro/index.php" title="Upgrade And Unlock Powerful
Features"><svg style="position:relative;top:2px;margin-right:2px;" width="12"
height="16" viewBox="0 0 12 16" fill="none"
xmlns="http://www.w3.org/2000/svg"><path d="M6.65723 6.24707C6.76704 5.91764 7.233
5.91765 7.34281 6.24707L7.98828 8.1835C8.276 9.04666 8.95332 9.72399 9.81648
10.0117L11.7529 10.6572C12.0824 10.767 12.0824 11.233 11.7529 11.3428L9.81649
11.9883C8.95332 12.276 8.27599 12.9533 7.98828 13.8165L7.34281 15.7529C7.233
16.0823 6.76704 16.0823 6.65723 15.7529L6.01173 13.8165C5.72401 12.9533 5.04669
12.276 4.18353 11.9883L2.24707 11.3428C1.91764 11.233 1.91764 10.767 2.24707
10.6572L4.18353 10.0117C5.04669 9.72399 5.72401 9.04667 6.01173 8.18352L6.65723
6.24707Z" fill="white"></path><path d="M2.79434 1.14824C2.86023 0.950586 3.1398
0.950587 3.20569 1.14824L3.59297 2.3101C3.7656 2.828 4.172 3.2344 4.6899
3.40703L5.85177 3.79432C6.04942 3.86021 6.04942 4.13978 5.85177 4.20567L4.6899
4.59296C4.172 4.76559 3.7656 5.17199 3.59297 5.68989L3.20569 6.85176C3.13981
7.04941 2.86023 7.04942 2.79434 6.85176L2.40704 5.68988C2.23441 5.17198 1.82801
4.76559 1.31012 4.59296L0.148241 4.20567C-0.0494137 4.13978 -0.0494138 3.86021
0.148241 3.79432L1.31012 3.40703C1.82802 3.2344 2.23441 2.82801 2.40704
2.31011L2.79434 1.14824Z" fill="white"></path><path d="M9.8629 0.0988265C9.90682 -
0.032943 10.0932 -0.0329419 10.1371 0.098828L10.3953 0.873401C10.5104 1.21867
10.7813 1.4896 11.1266 1.60469L11.9012 1.86288C12.0329 1.9068 12.0329 2.09319
11.9012 2.13711L11.1266 2.39531C10.7813 2.51039 10.5104 2.78133 10.3953
3.12659L10.1371 3.90117C10.0932 4.03294 9.90682 4.03294 9.8629 3.90117L9.6047
3.12659C9.48961 2.78132 9.21868 2.5104 8.87342 2.39531L8.09883 2.13711C7.96706
2.09319 7.96706 1.9068 8.09883 1.86288L8.87342 1.60469C9.21868 1.4896 9.48961
1.21867 9.6047 0.873408L9.8629 0.0988265Z" fill="white"></path></svg> Upgrade</a>
</div>
</div>

<div style="display: none; position: fixed; z-index: 4; right: 52px; height: 44px;
background-color: rgb(40, 42, 53); letter-spacing: normal; top: 0px;"
id="googleSearch">
<div class="gcse-search"></div>
</div>
<div style="display: none; position: fixed; z-index: 3; right: 111px; height: 44px;
background-color: rgb(40, 42, 53); text-align: right; padding-top: 9px; top: 0px;"
id="google_translate_element"></div>

<div class="w3-card-2 topnav notranslate" id="topnav" style="position: fixed; top:


0px;">
<div style="overflow:auto;">
<div class="w3-bar w3-left" style="width:100%;overflow:hidden;height:44px">
<a href="javascript:void(0);" class="topnav-icons fa fa-menu w3-hide-large
w3-left w3-bar-item w3-button ga-nav" onclick="open_menu()" title="Menu"></a>
<a href="https://www.w3schools.com/default.asp" class="topnav-icons fa fa-
home w3-left w3-bar-item w3-button ga-nav" title="Home"></a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/html/default.asp" title="HTML Tutorial"
style="padding-left:18px!important;padding-right:18px!important;">HTML</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/css/default.asp" title="CSS Tutorial">CSS</a>
<a class="w3-bar-item w3-button ga-nav active"
href="https://www.w3schools.com/js/default.asp" title="JavaScript
Tutorial">JAVASCRIPT</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/sql/default.asp" title="SQL Tutorial">SQL</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/python/default.asp" title="Python
Tutorial">PYTHON</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/java/default.asp" title="Java Tutorial">JAVA</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/php/default.asp" title="PHP Tutorial">PHP</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/bootstrap/bootstrap_ver.asp" title="Bootstrap
Tutorial">BOOTSTRAP</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/howto/default.asp" title="How To">HOW TO</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/w3css/default.asp" title="W3.CSS
Tutorial">W3.CSS</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/c/index.php" title="C Tutorial">C</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/cpp/default.asp" title="C++ Tutorial">C++</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/cs/index.php" title="C# Tutorial">C#</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/react/default.asp" title="React Tutorial">REACT</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/r/default.asp" title="R Tutorial">R</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/jquery/default.asp" title="jQuery
Tutorial">JQUERY</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/django/index.php" title="Django
Tutorial">DJANGO</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/typescript/index.php" title="Typescript
Tutorial">TYPESCRIPT</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/nodejs/default.asp" title="NodeJS
Tutorial">NODEJS</a>
<a class="w3-bar-item w3-button ga-nav"
href="https://www.w3schools.com/mysql/default.asp" title="MySQL Tutorial">MYSQL</a>
<a href="javascript:void(0);" class="topnav-icons fa w3-right w3-bar-item w3-
button ga-nav" onclick="gSearch(this)" title="Search W3Schools"></a>
<a href="javascript:void(0);" class="topnav-icons fa w3-right w3-bar-item w3-
button ga-nav" onclick="gTra(this)" title="Translate W3Schools"></a>
<a href="javascript:void(0);" class="topnav-icons fa w3-right w3-bar-item w3-
button ga-nav" onmouseover="mouseoverdarkicon()" onmouseout="mouseoutofdarkicon()"
onclick="changepagetheme(2)"></a>
</div>

<div id="darkmodemenu" class="ws-black" onmouseover="mouseoverdarkicon()"


onmouseout="mouseoutofdarkicon()">
<input id="radio_darkpage" type="checkbox" name="radio_theme_mode"
onclick="click_darkpage()"><label for="radio_darkpage"> Dark mode</label>
<br>
<input id="radio_darkcode" type="checkbox" name="radio_theme_mode"
onclick="click_darkcode()"><label for="radio_darkcode"> Dark code</label>
</div>

<nav id="nav_tutorials" class="w3-hide-small" style="position: absolute; padding-


bottom: 60px; display: none;">
<div class="w3-content" style="max-width:1100px;font-size:18px">
<span onclick="w3_close_nav(&#39;tutorials&#39;)" class="w3-button w3-xxxlarge w3-
display-topright w3-hover-white sectionxsclosenavspan" style="padding-
right:30px;padding-left:30px;">×</span><br>
<div class="w3-row-padding w3-bar-block">
<div class="w3-container" style="padding-left:13px">
<h2 style="color:#FFF4A3;"><b>Tutorials</b></h2>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">HTML and CSS</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/html/default.asp">Learn HTML</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/css/default.asp">Learn CSS</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/css/css_rwd_intro.asp" title="Responsive Web
Design">Learn RWD</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/bootstrap/bootstrap_ver.asp">Learn Bootstrap</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/w3css/default.asp">Learn W3.CSS</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/colors/default.asp">Learn Colors</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/icons/default.asp">Learn Icons</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/graphics/default.asp">Learn Graphics</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/graphics/svg_intro.asp">Learn SVG</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/graphics/canvas_intro.asp">Learn Canvas</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/howto/default.asp">Learn How To</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/sass/default.php">Learn Sass</a>
<div style="padding:4px 12px;border:2px solid #777;border-radius:5px;margin-
top:20px;width:225px;">
<h6 style="font-size:18px;margin:8px 0 0 0;font-family: &#39;Source Sans
Pro&#39;, sans-serif!important;">Next Bootcamp:</h6>
<h6 style="font-size:17px;font-family: &#39;Source Sans Pro&#39;, sans-serif!
important;">9th May</h6>
<a class="w3-bar-item ws-btn w3-margin-bottom w3-round w3-center ga-top-drop"
href="https://www.w3schools.com/bootcamp/index.php">Learn More</a>
</div>

<div class="w3-hide-large w3-hide-small">


<h3 class="w3-margin-top">Data Analytics</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/ai/default.asp">Learn AI</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/python_ml_getting_started.asp">Learn Machine
Learning</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/datascience/default.asp">Learn Data Science</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/numpy/default.asp">Learn NumPy</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/pandas/default.asp">Learn Pandas</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/scipy/index.php">Learn SciPy</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/matplotlib_intro.asp">Learn Matplotlib</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/statistics/index.php">Learn Statistics</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/excel/index.php">Learn Excel</a>

<h3 class="w3-margin-top">XML Tutorials</h3>


<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/default.asp">Learn XML</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/ajax_intro.asp">Learn XML AJAX</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/dom_intro.asp">Learn XML DOM</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/xml_dtd_intro.asp">Learn XML DTD</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/schema_intro.asp">Learn XML Schema</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/xsl_intro.asp">Learn XSLT</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/xpath_intro.asp">Learn XPath</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/xquery_intro.asp">Learn XQuery</a>
</div>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">JavaScript</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/js/default.asp">Learn JavaScript</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/jquery/default.asp">Learn jQuery</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/react/default.asp">Learn React</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/vue/index.php">Learn Vue.js</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/angular/default.asp">Learn AngularJS</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/js/js_json_intro.asp">Learn JSON</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/js/js_ajax_intro.asp">Learn AJAX</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/appml/default.asp">Learn AppML</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/w3js/default.asp">Learn W3.JS</a>

<h3 class="w3-margin-top">Programming</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/default.asp">Learn Python</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/java/default.asp">Learn Java</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/c/index.php">Learn C</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/cpp/default.asp">Learn C++</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/cs/index.php">Learn C#</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/r/default.asp">Learn R</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/kotlin/index.php">Learn Kotlin</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/go/index.php">Learn Go</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/django/index.php">Learn Django</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/typescript/index.php">Learn TypeScript</a>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">Server Side</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/sql/default.asp">Learn SQL</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/mysql/default.asp">Learn MySQL</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/php/default.asp">Learn PHP</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/asp/default.asp">Learn ASP</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/nodejs/default.asp">Learn Node.js</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/nodejs/nodejs_raspberrypi.asp">Learn Raspberry
Pi</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/git/default.asp">Learn Git</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/mongodb/index.php">Learn MongoDB</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/aws/index.php">Learn AWS Cloud</a>

<h3 class="w3-margin-top">Web Building</h3>


<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/spaces/index.html" title="Get Your Own Website With
W3shools Spaces">Create a Website <span class="ribbon-topnav
ws-yellow">NEW</span></a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/where_to_start.asp">Where To Start</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/w3css/w3css_templates.asp">Web Templates</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/browsers/default.asp">Web Statistics</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/" target="_blank">Web Certificates</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/whatis/default.asp">Web Development</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/tryit/default.asp">Code Editor</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/typingspeed/default.asp">Test Your Typing Speed</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/codegame/index.html" target="_blank">Play a Code
Game</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/cybersecurity/index.php">Cyber Security</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/accessibility/index.php">Accessibility</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/pages/newsletter" target="_blank">Join our
Newsletter</a>
</div>
<div class="w3-col l3 m6 w3-hide-medium">
<h3 class="w3-margin-top">Data Analytics</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/ai/default.asp">Learn AI</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/python_ml_getting_started.asp">Learn Machine
Learning</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/datascience/default.asp">Learn Data Science</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/numpy/default.asp">Learn NumPy</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/pandas/default.asp">Learn Pandas</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/scipy/index.php">Learn SciPy</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/matplotlib_intro.asp">Learn Matplotlib</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/statistics/index.php">Learn Statistics</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/excel/index.php">Learn Excel</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/googlesheets/index.php">Learn Google Sheets</a>

<h3 class="w3-margin-top">XML Tutorials</h3>


<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/default.asp">Learn XML</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/ajax_intro.asp">Learn XML AJAX</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/dom_intro.asp">Learn XML DOM</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/xml_dtd_intro.asp">Learn XML DTD</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/schema_intro.asp">Learn XML Schema</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/xsl_intro.asp">Learn XSLT</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/xpath_intro.asp">Learn XPath</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/xquery_intro.asp">Learn XQuery</a>
</div>
</div>
</div>
<br class="hidesm">
</nav>

<nav id="nav_references" class="w3-hide-small" style="position: absolute; padding-


bottom: 60px; display: none;">
<div class="w3-content" style="max-width:1100px;font-size:18px">
<span onclick="w3_close_nav(&#39;references&#39;)" class="w3-button w3-xxxlarge
w3-display-topright w3-hover-white sectionxsclosenavspan" style="padding-
right:30px;padding-left:30px;">×</span><br>
<div class="w3-row-padding w3-bar-block">
<div class="w3-container" style="padding-left:13px">
<h2 style="color:#FFF4A3;"><b>References</b></h2>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">HTML</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/tags/default.asp">HTML Tag Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/tags/ref_html_browsersupport.asp">HTML Browser
Support</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/tags/ref_eventattributes.asp">HTML Event
Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/colors/default.asp">HTML Color Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/tags/ref_attributes.asp">HTML Attribute
Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/tags/ref_canvas.asp">HTML Canvas Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/graphics/svg_reference.asp">HTML SVG Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/graphics/google_maps_reference.asp">Google Maps
Reference</a>
<h3 class="w3-margin-top">CSS</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/cssref/index.php">CSS Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/cssref/css3_browsersupport.asp">CSS Browser
Support</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/cssref/css_selectors.asp">CSS Selector
Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/bootstrap/bootstrap_ref_all_classes.asp">Bootstrap
3 Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/bootstrap4/bootstrap_ref_all_classes.asp">Bootstrap
4 Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/w3css/w3css_references.asp">W3.CSS Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/icons/icons_reference.asp">Icon Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/sass/sass_functions_string.php">Sass Reference</a>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">JavaScript</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/jsref/default.asp">JavaScript Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/jsref/default.asp">HTML DOM Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/jquery/jquery_ref_overview.asp">jQuery
Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/angular/angular_ref_directives.asp">AngularJS
Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/appml/appml_reference.asp">AppML Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/w3js/w3js_references.asp">W3.JS Reference</a>

<h3 class="w3-margin-top">Programming</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/python_reference.asp">Python Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/java/java_ref_keywords.asp">Java Reference</a>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">Server Side</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/sql/sql_ref_keywords.asp">SQL Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/mysql/mysql_ref_functions.asp">MySQL Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/php/php_ref_overview.asp">PHP Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/asp/asp_ref_response.asp">ASP Reference</a>
<h3 class="w3-margin-top">XML</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/dom_nodetype.asp">XML DOM Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/dom_http.asp">XML Http Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/xsl_elementref.asp">XSLT Reference</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/schema_elements_ref.asp">XML Schema
Reference</a>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top">Character Sets</h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/charsets/default.asp">HTML Character Sets</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/charsets/ref_html_ascii.asp">HTML ASCII</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/charsets/ref_html_ansi.asp">HTML ANSI</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/charsets/ref_html_ansi.asp">HTML Windows-1252</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/charsets/ref_html_8859.asp">HTML ISO-8859-1</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/charsets/ref_html_symbols.asp">HTML Symbols</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/charsets/ref_html_utf8.asp">HTML UTF-8</a>
</div>
</div>
<br class="hidesm">
</div>
</nav>

<nav id="nav_exercises" class="w3-hide-small" style="position: absolute; padding-


bottom: 60px; display: none;">
<div class="w3-content" style="max-width:1100px;font-size:18px">
<span onclick="w3_close_nav(&#39;exercises&#39;)" class="w3-button w3-xxxlarge w3-
display-topright w3-hover-white sectionxsclosenavspan" style="padding-
right:30px;padding-left:30px;">×</span><br>
<div class="w3-row-padding w3-bar-block">
<div class="w3-container" style="padding-left:13px">
<h2 style="color:#FFF4A3;"><b>Exercises and Quizzes</b></h2>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top"><a class="ws-btn ws-yellow w3-hover-text-white"
style="width:155px;font-size:21px"
href="https://www.w3schools.com/exercises/index.php">Exercises</a></h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/html/html_exercises.asp">HTML Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/css/css_exercises.asp">CSS Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/js/js_exercises.asp">JavaScript Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/python_exercises.asp">Python Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/sql/sql_exercises.asp">SQL Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/php/php_exercises.asp">PHP Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/java/java_exercises.asp">Java Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/c/c_exercises.php">C Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/cpp/cpp_exercises.asp">C++ Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/cs/cs_exercises.asp">C# Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/jquery/jquery_exercises.asp">jQuery Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/react/react_exercises.asp">React.js Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/vue/vue_exercises.php">Vue.js Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/mysql/mysql_exercises.asp">MySQL Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/bootstrap5/bootstrap_exercises.php">Bootstrap 5
Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/bootstrap4/bootstrap_exercises.asp">Bootstrap 4
Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/bootstrap/bootstrap_exercises.asp">Bootstrap 3
Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/numpy/numpy_exercises.asp">NumPy
Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/pandas/pandas_exercises.asp">Pandas
Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/scipy/scipy_exercises.php">SciPy
Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/typescript/typescript_exercises.php">TypeScript
Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/excel/excel_exercises.php">Excel Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/r/r_exercises.asp">R Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/git/git_exercises.asp">Git Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/kotlin/kotlin_exercises.php">Kotlin Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/go/go_exercises.php">Go Exercises</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/mongodb/mongodb_exercises.php">MongoDB
Exercises</a>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top"><a class="ws-btn ws-yellow w3-hover-text-white"
style="width:135px;font-size:21px"
href="https://www.w3schools.com/quiztest/default.asp">Quizzes</a></h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/html/html_quiz.asp" target="_top">HTML Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/css/css_quiz.asp" target="_top">CSS Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/js/js_quiz.asp" target="_top">JavaScript Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/python_quiz.asp" target="_top">Python
Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/sql/sql_quiz.asp" target="_top">SQL Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/php/php_quiz.asp" target="_top">PHP Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/java/java_quiz.asp" target="_top">Java Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/c/c_quiz.php">C Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/cpp/cpp_quiz.asp" target="_top">C++ Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/cs/cs_quiz.asp" target="_top">C# Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/jquery/jquery_quiz.asp" target="_top">jQuery
Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/react/react_quiz.asp">React.js Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/vue/vue_quiz.php">Vue.js Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/mysql/mysql_quiz.asp" target="_top">MySQL Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/bootstrap5/bootstrap_quiz.php"
target="_top">Bootstrap 5 Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/bootstrap4/bootstrap_quiz.asp"
target="_top">Bootstrap 4 Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/bootstrap/bootstrap_quiz.asp"
target="_top">Bootstrap 3 Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/numpy/numpy_quiz.asp" target="_top">NumPy
Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/pandas/pandas_quiz.asp" target="_top">Pandas
Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/python/scipy/scipy_quiz.php" target="_top">SciPy
Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/typescript/typescript_quiz.php">TypeScript Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/xml/xml_quiz.asp" target="_top">XML Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/r/r_quiz.asp" target="_top">R Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/git/git_quiz.asp">Git Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/kotlin/kotlin_quiz.php" target="_top">Kotlin
Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/cybersecurity/cybersecurity_quiz.php">Cyber
Security Quiz</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://www.w3schools.com/accessibility/accessibility_quiz.php">Accessibility
Quiz</a>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top"><a class="ws-btn ws-yellow w3-hover-text-white"
style="width:135px;font-size:21px"
href="https://campus.w3schools.com/collections/course-catalog"
target="_blank">Courses</a></h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/html-course"
target="_blank">HTML Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/css-course"
target="_blank">CSS Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/javascript-
course" target="_blank">JavaScript Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/front-end-
course" target="_blank">Front End Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/python-
course" target="_blank">Python Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/sql-course"
target="_blank">SQL Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/php-course"
target="_blank">PHP Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/java-course"
target="_blank">Java Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/c-course-1"
target="_blank">C++ Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/c-course"
target="_blank">C# Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/jquery-
course" target="_blank">jQuery Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/react-js-
course" target="_blank">React.js Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/bootstrap-4-
course" target="_blank">Bootstrap 4 Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/bootstrap-
course" target="_blank">Bootstrap 3 Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/numpy-
course" target="_blank">NumPy Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/pandas-
course" target="_blank">Pandas Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/learn-
typescript" target="_blank">TypeScript Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/xml-course"
target="_blank">XML Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/r-course"
target="_blank">R Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/data-
analytics-program" target="_blank">Data Analytics Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/cyber-
security-course" target="_blank">Cyber Security Course</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/course-catalog/products/
accessibility-course" target="_blank">Accessibility Course</a>
</div>
<div class="w3-col l3 m6">
<h3 class="w3-margin-top"><a class="ws-btn ws-yellow w3-hover-text-white"
style="width:150px;font-size:21px"
href="https://campus.w3schools.com/collections/certifications"
target="_blank">Certificates</a></h3>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/html-
certificate" target="_blank">HTML Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/css-
certificate" target="_blank">CSS Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/javascript-
certificate" target="_blank">JavaScript Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/front-end-
certificate" target="_blank">Front End Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/python-
certificate" target="_blank">Python Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/sql-
certificate" target="_blank">SQL Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/php-
certificate" target="_blank">PHP Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/java-
certificate" target="_blank">Java Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/c-
certificate" target="_blank">C++ Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/c-
certificate-1" target="_blank">C# Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/jquery-
certificate" target="_blank">jQuery Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/react-js-
certificate" target="_blank">React.js Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/mysql-
certificate" target="_blank">MySQL Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/bootstrap-5-
certificate" target="_blank">Bootstrap 5 Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/bootstrap-4-
certificate" target="_blank">Bootstrap 4 Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/bootstrap-3-
certificate" target="_blank">Bootstrap 3 Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/typescript-
certificate" target="_blank">TypeScript Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/xml-
certificate" target="_blank">XML Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/excel-
certificate" target="_blank">Excel Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/data-
science-certificate" target="_blank">Data Science Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/cyber-
security-certificate" target="_blank">Cyber Security Certificate</a>
<a class="w3-bar-item w3-button ga-top-drop"
href="https://campus.w3schools.com/collections/certifications/products/
accessibility-certificate" target="_blank">Accessibility Certificate</a>
</div>
</div>
<br class="hidesm">
</div>
</nav>

</div>
</div>

<div id="myAccordion" class="w3-card-2 w3-center w3-hide-large w3-hide-medium ws-


grey" style="width: 100%; position: absolute; display: none; padding-top: 44px;">
<a href="javascript:void(0)" onclick="w3_close()" class="w3-button w3-xxlarge w3-
right">×</a><br>
<div class="w3-container w3-padding-32">
<a class="w3-button w3-block ga-top" style="font-size:22px;"
onclick="open_xs_menu(&#39;tutorials&#39;);" href="javascript:void(0);">Tutorials
<i class="fa fa-caret-down"></i></a>
<div id="sectionxs_tutorials" class="w3-left-align w3-show" style="background-
color:#282A35;color:white;"></div>
<a class="w3-button w3-block ga-top" style="font-size:22px;"
onclick="open_xs_menu(&#39;references&#39;)" href="javascript:void(0);">References
<i class="fa fa-caret-down"></i></a>
<div id="sectionxs_references" class="w3-left-align w3-show" style="background-
color:#282A35;color:white;"></div>
<a class="w3-button w3-block ga-top" style="font-size:22px;"
onclick="open_xs_menu(&#39;exercises&#39;)" href="javascript:void(0);">Exercises <i
class="fa fa-caret-down"></i></a>
<div id="sectionxs_exercises" class="w3-left-align w3-show" style="background-
color:#282A35;color:white;"></div>
<a class="w3-button w3-block ga-top" style="font-size:22px;"
href="https://campus.w3schools.com/collections/course-catalog" target="_blank">Get
Certified</a>
<a class="w3-button w3-block ga-top" style="font-size:22px;"
href="https://www.w3schools.com/signup/index.html">Sign Up</a>
<a class="w3-button w3-block ga-top" style="font-size:22px;"
href="https://www.w3schools.com/pro/index.php" title="Upgrade to Improve Your
Learning Experiences">Upgrade</a>
<a class="w3-button w3-block ga-top" style="font-size:22px;"
href="https://www.w3schools.com/spaces/index.html" title="Get Your Own Website With
W3schools Spaces">Spaces</a>
<a class="w3-button w3-block ga-top" style="font-size:22px;"
href="https://www.w3schools.com/bootcamp/index.php">Bootcamp</a>
<a class="w3-button w3-block ga-top" style="font-size:22px;"
href="https://www.w3schools.com/videos/index.php" title="Video
Tutorials">Videos</a>
<a class="w3-button w3-block ga-top" style="font-size:22px;"
href="https://campus.w3schools.com/" target="_blank">Shop</a>
</div>
</div>

<script>
(
function setThemeCheckboxes() {
var x = localStorage.getItem("preferredmode");
var y = localStorage.getItem("preferredpagemode");
if (x == "dark") {
document.getElementById("radio_darkcode").checked = true;

}
if (y == "dark") {
document.getElementById("radio_darkpage").checked = true;
}
})();

function mouseoverdarkicon() {
if(window.matchMedia("(pointer: coarse)").matches) {
return false;
}
var a = document.getElementById("darkmodemenu");
a.style.top = "44px";
}
function mouseoutofdarkicon() {
var a = document.getElementById("darkmodemenu");
a.style.top = "-40px";
}
function changepagetheme(n) {
var a = document.getElementById("radio_darkcode");
var b = document.getElementById("radio_darkpage");
document.body.className = document.body.className.replace("darktheme", "");
document.body.className = document.body.className.replace("darkpagetheme", "");
document.body.className = document.body.className.replace(" ", " ");
if (a.checked && b.checked) {
localStorage.setItem("preferredmode", "light");
localStorage.setItem("preferredpagemode", "light");
a.checked = false;
b.checked = false;
} else {
document.body.className += " darktheme";
document.body.className += " darkpagetheme";
localStorage.setItem("preferredmode", "dark");
localStorage.setItem("preferredpagemode", "dark");
a.checked = true;
b.checked = true;
}
}
function click_darkpage() {
var b = document.getElementById("radio_darkpage");
if (b.checked) {
document.body.className += " darkpagetheme";
document.body.className = document.body.className.replace(" ", " ");
localStorage.setItem("preferredpagemode", "dark");
} else {
document.body.className = document.body.className.replace("darkpagetheme", "");
document.body.className = document.body.className.replace(" ", " ");
localStorage.setItem("preferredpagemode", "light");
}
}

function click_darkcode() {
var a = document.getElementById("radio_darkcode");
if (a.checked) {
document.body.className += " darktheme";
document.body.className = document.body.className.replace(" ", " ");
localStorage.setItem("preferredmode", "dark");
} else {
document.body.className = document.body.className.replace("darktheme", "");
document.body.className = document.body.className.replace(" ", " ");
localStorage.setItem("preferredmode", "light");
}
}
</script>

<div class="w3-sidebar w3-collapse" id="sidenav" style="top: 44px; display: none;">


<div id="leftmenuinner" style="padding-top: 44px;">
<div id="leftmenuinnerinner">
<!-- <a href='javascript:void(0)' onclick='close_menu()' class='w3-button w3-hide-
large w3-large w3-display-topright' style='right:16px;padding:3px 12px;font-
weight:bold;'>&times;</a>-->
<h2 class="left">JS Tutorial</h2>
<a target="_top" href="https://www.w3schools.com/js/default.asp">JS HOME</a>
<a target="_top" href="https://www.w3schools.com/js/js_intro.asp" class="active">JS
Introduction</a>
<a target="_top" href="https://www.w3schools.com/js/js_whereto.asp">JS Where To</a>
<a target="_top" href="https://www.w3schools.com/js/js_output.asp">JS Output</a>
<a target="_top" href="https://www.w3schools.com/js/js_statements.asp">JS
Statements</a>
<a target="_top" href="https://www.w3schools.com/js/js_syntax.asp">JS Syntax</a>
<a target="_top" href="https://www.w3schools.com/js/js_comments.asp">JS
Comments</a>
<a target="_top" href="https://www.w3schools.com/js/js_variables.asp">JS
Variables</a>
<a target="_top" href="https://www.w3schools.com/js/js_let.asp">JS Let</a>
<a target="_top" href="https://www.w3schools.com/js/js_const.asp">JS Const</a>
<a target="_top" href="https://www.w3schools.com/js/js_operators.asp">JS
Operators</a>
<a target="_top" href="https://www.w3schools.com/js/js_arithmetic.asp">JS
Arithmetic</a>
<a target="_top" href="https://www.w3schools.com/js/js_assignment.asp">JS
Assignment</a>
<a target="_top" href="https://www.w3schools.com/js/js_datatypes.asp">JS Data
Types</a>
<a target="_top" href="https://www.w3schools.com/js/js_functions.asp">JS
Functions</a>
<a target="_top" href="https://www.w3schools.com/js/js_objects.asp">JS Objects</a>
<a target="_top" href="https://www.w3schools.com/js/js_events.asp">JS Events</a>
<a target="_top" href="https://www.w3schools.com/js/js_strings.asp">JS Strings</a>
<a target="_top" href="https://www.w3schools.com/js/js_string_methods.asp">JS
String Methods</a>
<a target="_top" href="https://www.w3schools.com/js/js_string_search.asp">JS String
Search</a>
<a target="_top" href="https://www.w3schools.com/js/js_string_templates.asp">JS
String Templates</a>
<a target="_top" href="https://www.w3schools.com/js/js_numbers.asp">JS Numbers</a>
<a target="_top" href="https://www.w3schools.com/js/js_bigint.asp">JS BigInt</a>
<a target="_top" href="https://www.w3schools.com/js/js_number_methods.asp">JS
Number Methods</a>
<a target="_top" href="https://www.w3schools.com/js/js_number_properties.asp">JS
Number Properties</a>
<a target="_top" href="https://www.w3schools.com/js/js_arrays.asp">JS Arrays</a>
<a target="_top" href="https://www.w3schools.com/js/js_array_methods.asp">JS Array
Methods</a>
<a target="_top" href="https://www.w3schools.com/js/js_array_sort.asp">JS Array
Sort</a>
<a target="_top" href="https://www.w3schools.com/js/js_array_iteration.asp">JS
Array Iteration</a>
<a target="_top" href="https://www.w3schools.com/js/js_array_const.asp">JS Array
Const</a>
<a target="_top" href="https://www.w3schools.com/js/js_dates.asp">JS Dates</a>
<a target="_top" href="https://www.w3schools.com/js/js_date_formats.asp">JS Date
Formats</a>
<a target="_top" href="https://www.w3schools.com/js/js_date_methods.asp">JS Date
Get Methods</a>
<a target="_top" href="https://www.w3schools.com/js/js_date_methods_set.asp">JS
Date Set Methods</a>
<a target="_top" href="https://www.w3schools.com/js/js_math.asp">JS Math</a>
<a target="_top" href="https://www.w3schools.com/js/js_random.asp">JS Random</a>
<a target="_top" href="https://www.w3schools.com/js/js_booleans.asp">JS
Booleans</a>
<a target="_top" href="https://www.w3schools.com/js/js_comparisons.asp">JS
Comparisons</a>
<a target="_top" href="https://www.w3schools.com/js/js_if_else.asp">JS If Else</a>
<a target="_top" href="https://www.w3schools.com/js/js_switch.asp">JS Switch</a>
<a target="_top" href="https://www.w3schools.com/js/js_loop_for.asp">JS Loop
For</a>
<a target="_top" href="https://www.w3schools.com/js/js_loop_forin.asp">JS Loop For
In</a>
<a target="_top" href="https://www.w3schools.com/js/js_loop_forof.asp">JS Loop For
Of</a>
<a target="_top" href="https://www.w3schools.com/js/js_loop_while.asp">JS Loop
While</a>
<a target="_top" href="https://www.w3schools.com/js/js_break.asp">JS Break</a>
<a target="_top" href="https://www.w3schools.com/js/js_iterables.asp">JS
Iterables</a>
<a target="_top" href="https://www.w3schools.com/js/js_sets.asp">JS Sets</a>
<a target="_top" href="https://www.w3schools.com/js/js_maps.asp">JS Maps</a>
<a target="_top" href="https://www.w3schools.com/js/js_typeof.asp">JS Typeof</a>
<a target="_top" href="https://www.w3schools.com/js/js_type_conversion.asp">JS Type
Conversion</a>
<a target="_top" href="https://www.w3schools.com/js/js_bitwise.asp">JS Bitwise</a>
<a target="_top" href="https://www.w3schools.com/js/js_regexp.asp">JS RegExp</a>
<a target="_top" href="https://www.w3schools.com/js/js_precedence.asp">JS
Precedence</a>
<a target="_top" href="https://www.w3schools.com/js/js_errors.asp">JS Errors</a>
<a target="_top" href="https://www.w3schools.com/js/js_scope.asp">JS Scope</a>
<a target="_top" href="https://www.w3schools.com/js/js_hoisting.asp">JS
Hoisting</a>
<a target="_top" href="https://www.w3schools.com/js/js_strict.asp">JS Strict
Mode</a>
<a target="_top" href="https://www.w3schools.com/js/js_this.asp">JS this
Keyword</a>
<a target="_top" href="https://www.w3schools.com/js/js_arrow_function.asp">JS Arrow
Function</a>
<a target="_top" href="https://www.w3schools.com/js/js_classes.asp">JS Classes</a>
<a target="_top" href="https://www.w3schools.com/js/js_modules.asp">JS Modules</a>
<a target="_top" href="https://www.w3schools.com/js/js_json.asp">JS JSON</a>
<a target="_top" href="https://www.w3schools.com/js/js_debugging.asp">JS
Debugging</a>
<a target="_top" href="https://www.w3schools.com/js/js_conventions.asp">JS Style
Guide</a>
<a target="_top" href="https://www.w3schools.com/js/js_best_practices.asp">JS Best
Practices</a>
<a target="_top" href="https://www.w3schools.com/js/js_mistakes.asp">JS
Mistakes</a>
<a target="_top" href="https://www.w3schools.com/js/js_performance.asp">JS
Performance</a>
<a target="_top" href="https://www.w3schools.com/js/js_reserved.asp">JS Reserved
Words</a>
<br>
<h2 class="left">JS Versions</h2>
<a target="_top" href="https://www.w3schools.com/js/js_versions.asp">JS
Versions</a>
<a target="_top" href="https://www.w3schools.com/js/js_es5.asp">JS 2009 (ES5)</a>
<a target="_top" href="https://www.w3schools.com/js/js_es6.asp">JS 2015 (ES6)</a>
<a target="_top" href="https://www.w3schools.com/js/js_2016.asp">JS 2016</a>
<a target="_top" href="https://www.w3schools.com/js/js_2017.asp">JS 2017</a>
<a target="_top" href="https://www.w3schools.com/js/js_2018.asp">JS 2018</a>
<a target="_top" href="https://www.w3schools.com/js/js_2019.asp">JS 2019</a>
<a target="_top" href="https://www.w3schools.com/js/js_2020.asp">JS 2020</a>
<a target="_top" href="https://www.w3schools.com/js/js_2021.asp">JS 2021/2022</a>
<a target="_top" href="https://www.w3schools.com/js/js_ie_edge.asp">JS IE /
Edge</a>
<a target="_top" href="https://www.w3schools.com/js/js_history.asp">JS History</a>
<br>
<h2 class="left">JS Objects</h2>
<a target="_top"
href="https://www.w3schools.com/js/js_object_definition.asp">Object Definitions</a>
<a target="_top"
href="https://www.w3schools.com/js/js_object_properties.asp">Object Properties</a>
<a target="_top" href="https://www.w3schools.com/js/js_object_methods.asp">Object
Methods</a>
<a target="_top" href="https://www.w3schools.com/js/js_object_display.asp">Object
Display</a>
<a target="_top" href="https://www.w3schools.com/js/js_object_accessors.asp">Object
Accessors</a>
<a target="_top"
href="https://www.w3schools.com/js/js_object_constructors.asp">Object
Constructors</a>
<a target="_top"
href="https://www.w3schools.com/js/js_object_prototypes.asp">Object Prototypes</a>
<a target="_top" href="https://www.w3schools.com/js/js_object_iterables.asp">Object
Iterables</a>
<a target="_top" href="https://www.w3schools.com/js/js_object_sets.asp">Object
Sets</a>
<a target="_top" href="https://www.w3schools.com/js/js_object_maps.asp">Object
Maps</a>
<a target="_top" href="https://www.w3schools.com/js/js_object_es5.asp">Object
Reference</a>
<br>
<h2 class="left">JS Functions</h2>
<a target="_top"
href="https://www.w3schools.com/js/js_function_definition.asp">Function
Definitions</a>
<a target="_top"
href="https://www.w3schools.com/js/js_function_parameters.asp">Function
Parameters</a>
<a target="_top"
href="https://www.w3schools.com/js/js_function_invocation.asp">Function
Invocation</a>
<a target="_top" href="https://www.w3schools.com/js/js_function_call.asp">Function
Call</a>
<a target="_top" href="https://www.w3schools.com/js/js_function_apply.asp">Function
Apply</a>
<a target="_top" href="https://www.w3schools.com/js/js_function_bind.asp">Function
Bind</a>
<a target="_top"
href="https://www.w3schools.com/js/js_function_closures.asp">Function Closures</a>
<br>
<h2 class="left">JS Classes</h2>
<a target="_top" href="https://www.w3schools.com/js/js_class_intro.asp">Class
Intro</a>
<a target="_top" href="https://www.w3schools.com/js/js_class_inheritance.asp">Class
Inheritance</a>
<a target="_top" href="https://www.w3schools.com/js/js_class_static.asp">Class
Static</a>
<br>
<h2 class="left">JS Async</h2>
<a target="_top" href="https://www.w3schools.com/js/js_callback.asp">JS
Callbacks</a>
<a target="_top" href="https://www.w3schools.com/js/js_asynchronous.asp">JS
Asynchronous</a>
<a target="_top" href="https://www.w3schools.com/js/js_promise.asp">JS Promises</a>
<a target="_top" href="https://www.w3schools.com/js/js_async.asp">JS
Async/Await</a>
<br>
<h2 class="left">JS HTML DOM</h2>
<a target="_top" href="https://www.w3schools.com/js/js_htmldom.asp">DOM Intro</a>
<a target="_top" href="https://www.w3schools.com/js/js_htmldom_methods.asp">DOM
Methods</a>
<a target="_top" href="https://www.w3schools.com/js/js_htmldom_document.asp">DOM
Document</a>
<a target="_top" href="https://www.w3schools.com/js/js_htmldom_elements.asp">DOM
Elements</a>
<a target="_top" href="https://www.w3schools.com/js/js_htmldom_html.asp">DOM
HTML</a>
<a target="_top" href="https://www.w3schools.com/js/js_validation.asp">DOM
Forms</a>
<a target="_top" href="https://www.w3schools.com/js/js_htmldom_css.asp">DOM CSS</a>
<a target="_top" href="https://www.w3schools.com/js/js_htmldom_animate.asp">DOM
Animations</a>
<a target="_top" href="https://www.w3schools.com/js/js_htmldom_events.asp">DOM
Events</a>
<a target="_top"
href="https://www.w3schools.com/js/js_htmldom_eventlistener.asp">DOM Event
Listener</a>
<a target="_top" href="https://www.w3schools.com/js/js_htmldom_navigation.asp">DOM
Navigation</a>
<a target="_top" href="https://www.w3schools.com/js/js_htmldom_nodes.asp">DOM
Nodes</a>
<a target="_top" href="https://www.w3schools.com/js/js_htmldom_collections.asp">DOM
Collections</a>
<a target="_top" href="https://www.w3schools.com/js/js_htmldom_nodelist.asp">DOM
Node Lists</a>
<br>
<h2 class="left">JS Browser BOM</h2>
<a target="_top" href="https://www.w3schools.com/js/js_window.asp">JS Window</a>
<a target="_top" href="https://www.w3schools.com/js/js_window_screen.asp">JS
Screen</a>
<a target="_top" href="https://www.w3schools.com/js/js_window_location.asp">JS
Location</a>
<a target="_top" href="https://www.w3schools.com/js/js_window_history.asp">JS
History</a>
<a target="_top" href="https://www.w3schools.com/js/js_window_navigator.asp">JS
Navigator</a>
<a target="_top" href="https://www.w3schools.com/js/js_popup.asp">JS Popup
Alert</a>
<a target="_top" href="https://www.w3schools.com/js/js_timing.asp">JS Timing</a>
<a target="_top" href="https://www.w3schools.com/js/js_cookies.asp">JS Cookies</a>
<br>
<h2 class="left">JS Web APIs</h2>
<a target="_top" href="https://www.w3schools.com/js/js_api_intro.asp">Web API
Intro</a>
<a target="_top" href="https://www.w3schools.com/js/js_validation_api.asp">Web
Forms API</a>
<a target="_top" href="https://www.w3schools.com/js/js_api_history.asp">Web History
API</a>
<a target="_top" href="https://www.w3schools.com/js/js_api_web_storage.asp">Web
Storage API</a>
<a target="_top" href="https://www.w3schools.com/js/js_api_web_workers.asp">Web
Worker API</a>
<a target="_top" href="https://www.w3schools.com/js/js_api_fetch.asp">Web Fetch
API</a>
<a target="_top" href="https://www.w3schools.com/js/js_api_geolocation.asp">Web
Geolocation API</a>
<br>
<h2 class="left">JS AJAX</h2>
<a target="_top" href="https://www.w3schools.com/js/js_ajax_intro.asp">AJAX
Intro</a>
<a target="_top" href="https://www.w3schools.com/js/js_ajax_http.asp">AJAX
XMLHttp</a>
<a target="_top" href="https://www.w3schools.com/js/js_ajax_http_send.asp">AJAX
Request</a>
<a target="_top" href="https://www.w3schools.com/js/js_ajax_http_response.asp">AJAX
Response</a>
<a target="_top" href="https://www.w3schools.com/js/js_ajax_xmlfile.asp">AJAX XML
File</a>
<a target="_top" href="https://www.w3schools.com/js/js_ajax_php.asp">AJAX PHP</a>
<a target="_top" href="https://www.w3schools.com/js/js_ajax_asp.asp">AJAX ASP</a>
<a target="_top" href="https://www.w3schools.com/js/js_ajax_database.asp">AJAX
Database</a>
<a target="_top" href="https://www.w3schools.com/js/js_ajax_applications.asp">AJAX
Applications</a>
<a target="_top" href="https://www.w3schools.com/js/js_ajax_examples.asp">AJAX
Examples</a>
<br>
<h2 class="left">JS JSON</h2>
<a target="_top" href="https://www.w3schools.com/js/js_json_intro.asp">JSON
Intro</a>
<a target="_top" href="https://www.w3schools.com/js/js_json_syntax.asp">JSON
Syntax</a>
<a target="_top" href="https://www.w3schools.com/js/js_json_xml.asp">JSON vs
XML</a>
<a target="_top" href="https://www.w3schools.com/js/js_json_datatypes.asp">JSON
Data Types</a>
<a target="_top" href="https://www.w3schools.com/js/js_json_parse.asp">JSON
Parse</a>
<a target="_top" href="https://www.w3schools.com/js/js_json_stringify.asp">JSON
Stringify</a>
<a target="_top" href="https://www.w3schools.com/js/js_json_objects.asp">JSON
Objects</a>
<a target="_top" href="https://www.w3schools.com/js/js_json_arrays.asp">JSON
Arrays</a>
<a target="_top" href="https://www.w3schools.com/js/js_json_server.asp">JSON
Server</a>
<a target="_top" href="https://www.w3schools.com/js/js_json_php.asp">JSON PHP</a>
<a target="_top" href="https://www.w3schools.com/js/js_json_html.asp">JSON HTML</a>
<a target="_top" href="https://www.w3schools.com/js/js_json_jsonp.asp">JSON
JSONP</a>
<br>
<h2 class="left">JS vs jQuery</h2>
<a target="_top" href="https://www.w3schools.com/js/js_jquery_selectors.asp">jQuery
Selectors</a>
<a target="_top" href="https://www.w3schools.com/js/js_jquery_elements.asp">jQuery
HTML</a>
<a target="_top" href="https://www.w3schools.com/js/js_jquery_css.asp">jQuery
CSS</a>
<a target="_top" href="https://www.w3schools.com/js/js_jquery_dom.asp">jQuery
DOM</a>
<br>
<h2 class="left">JS Graphics</h2>
<a target="_top" href="https://www.w3schools.com/js/js_graphics.asp">JS
Graphics</a>
<a target="_top" href="https://www.w3schools.com/js/js_graphics_canvas.asp">JS
Canvas</a>
<a target="_top" href="https://www.w3schools.com/js/js_graphics_plotly.asp">JS
Plotly</a>
<a target="_top" href="https://www.w3schools.com/js/js_graphics_chartjs.asp">JS
Chart.js</a>
<a target="_top"
href="https://www.w3schools.com/js/js_graphics_google_chart.asp">JS Google
Chart</a>
<a target="_top" href="https://www.w3schools.com/js/js_graphics_d3js.asp">JS
D3.js</a>
<br>
<h2 class="left">JS Examples</h2>
<a target="_top" href="https://www.w3schools.com/js/js_examples.asp">JS
Examples</a>
<a target="_top" href="https://www.w3schools.com/js/js_dom_examples.asp">JS HTML
DOM</a>
<a target="_top" href="https://www.w3schools.com/js/js_input_examples.asp">JS HTML
Input</a>
<a target="_top" href="https://www.w3schools.com/js/js_ex_dom.asp">JS HTML
Objects</a>
<a target="_top" href="https://www.w3schools.com/js/js_events_examples.asp">JS HTML
Events</a>
<a target="_top" href="https://www.w3schools.com/js/js_ex_browser.asp">JS
Browser</a>
<a target="_top" href="https://www.w3schools.com/js/js_editor.asp">JS Editor</a>
<a target="_top" href="https://www.w3schools.com/js/js_exercises.asp">JS
Exercises</a>
<a target="_top" href="https://www.w3schools.com/js/js_quiz.asp">JS Quiz</a>
<a target="_top" href="https://www.w3schools.com/js/js_exam.asp">JS Certificate</a>
<br>
<h2 class="left">JS References</h2>
<a target="_top" href="https://www.w3schools.com/jsref/default.asp">JavaScript
Objects</a>
<a target="_top" href="https://www.w3schools.com/jsref/default.asp">HTML DOM
Objects</a>
<br>
<br><br>
</div>
</div>
</div>
<div class="w3-main w3-light-grey" id="belowtopnav" style="margin-left: 220px;
padding-top: 44px;">
<div class="w3-row w3-white">
<div class="w3-col l10 m12" id="main">
<div id="mainLeaderboard" style="overflow:hidden;">
<!-- MainLeaderboard-->

<!--<pre>main_leaderboard, all: [728,90][970,90][320,50][468,60]</pre>-->


<div id="adngin-main_leaderboard-0" data-google-query-id="CNv_-uX-
5_4CFVFtfQod6EoOdA"><div
id="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//main_leaderboard_0_
_container__" style="border: 0pt none;"><iframe
id="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//main_leaderboard_0"
name="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//
main_leaderboard_0" title="3rd party ad content" width="728" height="90"
scrolling="no" marginwidth="0" marginheight="0" frameborder="0" role="region" aria-
label="Advertisement" tabindex="0" style="border: 0px; vertical-align: bottom;"
data-load-complete="true" data-google-container-id="3" src="./JavaScript
Introduction_files/saved_resource(2).html"></iframe></div></div>
<!-- adspace leaderboard -->

</div>
<h1>JavaScript <span class="color_h1">Introduction</span></h1>
<div class="w3-clear nextprev">
<a class="w3-left w3-btn"
href="https://www.w3schools.com/js/default.asp">❮ Previous</a>
<a class="w3-right w3-btn"
href="https://www.w3schools.com/js/js_whereto.asp">Next ❯</a>
</div>
<div class="w3-panel w3-info intro">
<p>This page contains some examples of what JavaScript can do.</p>
</div>

<h2>JavaScript Can Change HTML Content</h2>


<p>One of many JavaScript HTML methods is <code class="w3-
codespan">getElementById()</code>.</p>
<p>The example below "finds" an HTML element (with id="demo"),
and changes the element content (innerHTML) to "Hello JavaScript":</p>

<div class="w3-example">
<h3>Example</h3>
<div class="w3-code notranslate jsHigh"><span class="jscolor"
style="color:black"><span class="jsnumbercolor" style="color:red">
</span> document.<span class="jspropertycolor"
style="color:black">getElementById</span>(<span class="jsstringcolor"
style="color:brown">"demo"</span>).<span class="jspropertycolor"
style="color:black">innerHTML</span> = <span class="jsstringcolor"
style="color:brown">"Hello JavaScript"</span>; </span></div>
<a target="_blank" class="w3-btn w3-margin-bottom"
href="https://www.w3schools.com/js/tryit.asp?filename=tryjs_intro_inner_html">Try
it Yourself »</a>
</div>
<div class="w3-panel w3-note">
<p>JavaScript accepts both double and single quotes:</p>
</div>

<div class="w3-example">
<h3>Example</h3>
<div class="w3-code notranslate jsHigh"><span class="jscolor"
style="color:black"><span class="jsnumbercolor" style="color:red">
</span> document.<span class="jspropertycolor"
style="color:black">getElementById</span>(<span class="jsstringcolor"
style="color:brown">'demo'</span>).<span class="jspropertycolor"
style="color:black">innerHTML</span> = <span class="jsstringcolor"
style="color:brown">'Hello JavaScript'</span>; </span></div>
<a class="w3-btn w3-margin-bottom" href="https://www.w3schools.com/js/tryit.asp?
filename=tryjs_intro_inner_html_quotes" target="_blank">Try it Yourself »</a>
</div>
<hr>

<h2>JavaScript Can Change HTML Attribute Values</h2>


<p>In this example JavaScript changes the value of the <code class="w3-
codespan">src</code> (source) attribute of an <code class="w3-
codespan">&lt;img&gt;</code> tag:</p>

<div class="w3-example">
<h3>The Light Bulb</h3>
<div class="w3-padding-16 w3-white notranslate" style="text-
align:center;background-color:white!important;">
<button
onclick="document.getElementById(&#39;myImage&#39;).src=&#39;pic_bulbon.gif&#39;">T
urn on the light</button>
<img id="myImage" border="0" src="./JavaScript Introduction_files/pic_bulboff.gif"
style="width:100px">
<button
onclick="document.getElementById(&#39;myImage&#39;).src=&#39;pic_bulboff.gif&#39;">
Turn off the light</button>
</div>
<p>
<a class="w3-btn" href="https://www.w3schools.com/js/tryit.asp?
filename=tryjs_intro_lightbulb" target="_blank">Try it Yourself »</a>
</p>
</div>
<hr>
<div id="midcontentadcontainer" style="overflow:auto;text-align:center">
<!-- MidContent -->
<!-- <p class="adtext">Advertisement</p> -->

<div id="adngin-mid_content-0" data-google-query-id="CP6f_eX-


5_4CFVFtfQod6EoOdA"><div id="sn_ad_label_adngin-mid_content-0" class="sn_ad_label"
style="color:#000000;font-size:12px;margin:0;text-align:center;">ADVERTISEMENT</
div><div
id="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//mid_content_0__cont
ainer__" style="border: 0pt none;"><iframe
id="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//mid_content_0"
name="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//mid_content_0"
title="3rd party ad content" width="728" height="280" scrolling="no"
marginwidth="0" marginheight="0" frameborder="0" role="region" aria-
label="Advertisement" tabindex="0" style="border: 0px; vertical-align: bottom;"
data-load-complete="true" data-google-container-id="2" src="./JavaScript
Introduction_files/saved_resource(3).html"></iframe></div></div>

</div>
<hr>

<h2>JavaScript Can Change HTML Styles (CSS)</h2>


<p>Changing the style of an HTML element, is a variant of changing an HTML
attribute:</p>

<div class="w3-example">
<h3>Example</h3>
<div class="w3-code notranslate jsHigh"><span class="jscolor"
style="color:black"><span class="jsnumbercolor" style="color:red">
</span> document.<span class="jspropertycolor"
style="color:black">getElementById</span>(<span class="jsstringcolor"
style="color:brown">"demo"</span>).<span class="jspropertycolor"
style="color:black">style</span>.<span class="jspropertycolor"
style="color:black">fontSize</span> = <span class="jsstringcolor"
style="color:brown">"35px"</span>; </span></div>
<a target="_blank" class="w3-btn w3-margin-bottom"
href="https://www.w3schools.com/js/tryit.asp?filename=tryjs_intro_style">Try it
Yourself »</a>
</div>
<hr>

<h2>JavaScript Can Hide HTML Elements</h2>


<p>Hiding HTML elements can be done by changing the <code class="w3-
codespan">display</code> style:</p>

<div class="w3-example">
<h3>Example</h3>
<div class="w3-code notranslate jsHigh"><span class="jscolor"
style="color:black"><span class="jsnumbercolor" style="color:red">
</span> document.<span class="jspropertycolor"
style="color:black">getElementById</span>(<span class="jsstringcolor"
style="color:brown">"demo"</span>).<span class="jspropertycolor"
style="color:black">style</span>.<span class="jspropertycolor"
style="color:black">display</span> = <span class="jsstringcolor"
style="color:brown">"none"</span>; </span></div>
<a class="w3-btn w3-margin-bottom" href="https://www.w3schools.com/js/tryit.asp?
filename=tryjs_intro_hide" target="_blank">Try it Yourself »</a>
</div>
<hr>
<h2>JavaScript Can Show HTML Elements</h2>
<p>Showing hidden HTML elements can also be done by changing the <code class="w3-
codespan">display</code> style:</p>

<div class="w3-example">
<h3>Example</h3>
<div class="w3-code notranslate jsHigh"><span class="jscolor"
style="color:black"><span class="jsnumbercolor" style="color:red">
</span> document.<span class="jspropertycolor"
style="color:black">getElementById</span>(<span class="jsstringcolor"
style="color:brown">"demo"</span>).<span class="jspropertycolor"
style="color:black">style</span>.<span class="jspropertycolor"
style="color:black">display</span> = <span class="jsstringcolor"
style="color:brown">"block"</span>; </span></div>
<a class="w3-btn w3-margin-bottom" href="https://www.w3schools.com/js/tryit.asp?
filename=tryjs_intro_show" target="_blank">Try it Yourself »</a>
</div>

<div class="w3-panel w3-note">


<h3>Did You Know?</h3>
<p>JavaScript and <a href="https://www.w3schools.com/java/default.asp">Java</a> are
completely different languages, both in concept
and design.</p>
<p>JavaScript was invented by Brendan Eich in 1995, and became an ECMA standard
in 1997.</p>
<p>ECMA-262 is the official name of the standard. ECMAScript is the official name
of the language.
</p>
<a class="ws-btn" href="https://www.w3schools.com/js/js_versions.asp">JavaScript
Versions »</a>
</div>
<br>
<div class="w3-clear nextprev">
<a class="w3-left w3-btn"
href="https://www.w3schools.com/js/default.asp">❮ Previous</a>
<a class="w3-right w3-btn"
href="https://www.w3schools.com/js/js_whereto.asp">Next ❯</a>
</div>
<div id="mypagediv2" style="position:relative;text-align:center;">&nbsp;<a
href="https://profile.w3schools.com/log-in?redirect_url=https%3A%2F%2Fmy-
learning.w3schools.com%2F"><img src="./JavaScript
Introduction_files/mypagelogo32x32.png" alt="MYPAGE"
style="position:absolute;top:18px;margin-left:10px;xright:28px"><svg
style="position:absolute;xtop:0;xright:0;height:70px;width:70px"><path
id="mypage2_circle1" fill="none" stroke="rgba(76, 175, 80, 0.1)" stroke-width="4"
d="M 25.995811209816477 11.000000365540902 A 24 24 0 1 0 26 11"></path><path
id="mypage2_circle2" fill="none" stroke="rgba(76, 175, 80, 1)" stroke-width="4"
d="M 31.968557291956518 11.754004132912854 A 24 24 0 0 0 26
11"></path></svg></a></div>
<br>

</div>
<div class="w3-col l2 m12" id="right">

<div class="sidesection">
<div id="skyscraper">

<div id="adngin-sidebar_top-0" data-google-query-id="CICg_eX-


5_4CFVFtfQod6EoOdA"><div id="sn_ad_label_adngin-sidebar_top-0" class="sn_ad_label"
style="color:#000000;font-size:12px;margin:0;text-align:center;">ADVERTISEMENT</
div><div
id="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//wide_skyscraper_0__
container__" style="border: 0pt none; display: inline-block; width: 160px; height:
600px;"><iframe frameborder="0" src="./JavaScript
Introduction_files/container.html" id="google_ads_iframe_/22152718,16833175/sws-
hb//w3schools.com//wide_skyscraper_0" title="3rd party ad content" name=""
scrolling="no" marginwidth="0" marginheight="0" width="160" height="600" data-is-
safeframe="true" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox
allow-same-origin allow-scripts allow-top-navigation-by-user-activation"
role="region" aria-label="Advertisement" tabindex="0" data-google-container-id="4"
style="border: 0px; vertical-align: bottom;"
data-load-complete="true"></iframe></div></div>

</div>
</div>

<style>
.ribbon-vid {
font-size:12px;
font-weight:bold;
padding: 6px 20px;
left:-20px;
top:-10px;
text-align: center;
color:black;
border-radius:25px;
}
</style>

<div class="sidesection" style="margin-top:20px;margin-bottom:20px;">


<a id="upperfeatureshowcaselink" class="ga-right showcasefullaccess"
href="https://campus.w3schools.com/collections/course-catalog/products/w3schools-
full-access-course" target="_blank">
<picture id="upperfeatureshowcase">
<source id="upperfeatureshowcase3001" srcset="/images/img_fullaccess3_300.png"
media="(max-width: 990px)" style="border-radius: 5px;">
<source id="upperfeatureshowcase120" srcset="/images/img_fullaccess3_120.png"
media="(max-width: 1260px)" style="border-radius: 5px;">
<source id="upperfeatureshowcase160" srcset="/images/img_fullaccess3_160.png"
media="(max-width: 1700px)" style="border-radius: 5px;">
<img id="upperfeatureshowcase300" src="./JavaScript
Introduction_files/img_backend_300.png" alt="Get started with your own server with
Dynamic Spaces" style="width:auto;border-radius: 5px;"
srcset="/images/img_fullaccess3_300.png">
</picture>
</a>
</div>

<div class="sidesection">
<h4><a href="https://www.w3schools.com/colors/colors_picker.asp">COLOR
PICKER</a></h4>
<a href="https://www.w3schools.com/colors/colors_picker.asp" class="ga-right">
<img src="./JavaScript Introduction_files/colorpicker2000.png" alt="colorpicker"
loading="lazy">
</a>
</div>
<div class="sidesection">
<div class="sharethis" style="visibility: visible;">
<a href="https://www.facebook.com/w3schoolscom/" target="_blank"
title="Facebook"><span class="fa fa-facebook-square fa-2x ga-right"></span></a>
<a href="https://www.instagram.com/w3schools.com_official/" target="_blank"
title="Instagram"><span class="fa fa-instagram fa-2x ga-right"></span></a>
<a href="https://www.linkedin.com/company/w3schools.com/" target="_blank"
title="LinkedIn"><span class="fa fa-linkedin-square fa-2x ga-right"></span></a>
<a href="https://discord.gg/6Z7UaRbUQM" target="_blank" title="Join the
W3schools community on Discord"><span class="fa fa-discord fa-2x
ga-right"></span></a>
</div>
</div>

<style>
#courses_get_started_btn {
text-decoration:none !important;
background-color:#04AA6D;
width:100%;
border-bottom-left-radius:5px;
border-bottom-right-radius:5px;
padding-top:10px;
padding-bottom:10px;
font-family: 'Source Sans Pro', sans-serif;
}
#courses_get_started_btn:hover {
background-color:#059862!important;
}
</style>
<div id="internalCourses" class="sidesection">
<p style="font-size:18px;padding-left:2px;padding-right:2px;">Get certified<br>by
completing<br><span id="courses_subject_text">a JavaScript<br></span> course today!
</p>
<a id="courses_subject_img_link"
href="https://campus.w3schools.com/collections/course-catalog/products/javascript-
course?utm_source=classic&amp;utm_medium=tutorials&amp;utm_campaign=right-side-ad"
target="_blank" class="ga-right">
<div style="padding:0 20px 20px 20px">
<svg id="w3_cert_badge2" style="margin:auto;width:85%" data-name="w3_cert_badge2"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><defs><style>.cls-
1{fill:#04aa6b;}.cls-2{font-size:23px;}.cls-2,.cls-3,.cls-4{fill:#fff;}.cls-2,.cls-
3{font-family:RobotoMono-Medium, Roboto Mono;font-weight:500;}.cls-3{font-
size:20.08px;}</style></defs><circle class="cls-1" cx="150" cy="150" r="146.47"
transform="translate(-62.13 150) rotate(-45)"></circle><text class="cls-2"
transform="translate(93.54 63.89) rotate(-29.5)">w</text><text class="cls-2"
transform="translate(107.13 56.35) rotate(-20.8)">3</text><text class="cls-2"
transform="matrix(0.98, -0.21, 0.21, 0.98, 121.68, 50.97)">s</text><text
class="cls-2" transform="translate(136.89 47.84) rotate(-3.47)">c</text><text
class="cls-2" transform="translate(152.39 47.03) rotate(5.12)">h</text><text
class="cls-2" transform="translate(167.85 48.54) rotate(13.72)">o</text><text
class="cls-2" transform="translate(182.89 52.35) rotate(22.34)">o</text><text
class="cls-2" transform="matrix(0.86, 0.52, -0.52, 0.86, 197.18,
58.36)">l</text><text class="cls-2" transform="matrix(0.77, 0.64, -0.64, 0.77,
210.4, 66.46)">s</text><text class="cls-3" transform="translate(35.51 186.66)
rotate(69.37)"> </text><text class="cls-3" transform="matrix(0.47, 0.88, -0.88,
0.47, 41.27, 201.28)">C</text><text class="cls-3" transform="matrix(0.58, 0.81, -
0.81, 0.58, 48.91, 215.03)">E</text><text class="cls-3" transform="matrix(0.67,
0.74, -0.74, 0.67, 58.13, 227.36)">R</text><text class="cls-3"
transform="translate(69.16 238.92) rotate(39.44)">T</text><text class="cls-3"
transform="matrix(0.85, 0.53, -0.53, 0.85, 81.47, 248.73)">I</text><text
class="cls-3" transform="translate(94.94 256.83) rotate(24.36)">F</text><text
class="cls-3" transform="translate(109.34 263.09) rotate(16.83)">I</text><text
class="cls-3" transform="translate(124.46 267.41) rotate(9.34)">E</text><text
class="cls-3" transform="translate(139.99 269.73) rotate(1.88)">D</text><text
class="cls-3" transform="translate(155.7 270.01) rotate(-5.58)"> </text><text
class="cls-3" transform="translate(171.32 268.24) rotate(-13.06)"> </text><text
class="cls-2" transform="translate(187.55 266.81) rotate(-21.04)">.</text><text
class="cls-3" transform="translate(203.27 257.7) rotate(-29.24)"> </text><text
class="cls-3" transform="translate(216.84 249.83) rotate(-36.75)"> </text><text
class="cls-3" transform="translate(229.26 240.26) rotate(-44.15)">2</text><text
class="cls-3" transform="translate(240.39 229.13) rotate(-51.62)">0</text><text
class="cls-3" transform="translate(249.97 216.63) rotate(-59.17)">2</text><text
class="cls-3" transform="matrix(0.4, -0.92, 0.92, 0.4, 257.81,
203.04)">3</text><path class="cls-4" d="M196.64,136.31s3.53,3.8,8.5,3.8c3.9,0,6.75-
2.37,6.75-5.59,0-4-3.64-5.81-8-5.81h-2.59l-1.53-3.48,6.86-
8.13a34.07,34.07,0,0,1,2.7-2.85s-1.11,0-3.33,0H194.79v-5.86H217.7v4.28l-
9.19,10.61c5.18.74,10.24,4.43,10.24,10.92s-4.85,12.3-13.19,12.3a17.36,17.36,0,0,1-
12.41-5Z"></path><path class="cls-4" d="M152,144.24l30.24,53.86,14.94-
26.61L168.6,120.63H135.36l-13.78,24.53-13.77-
24.53H77.93l43.5,77.46.15-.28.16.28Z"></path></svg>
</div>

</a>
<a class="w3-btn ga-right" id="courses_get_started_btn"
href="https://campus.w3schools.com/collections/course-catalog/products/javascript-
course?utm_source=classic&amp;utm_medium=tutorials&amp;utm_campaign=right-side-ad"
target="_blank">Get started</a>
</div>

<div class="sidesection" id="moreAboutSubject">


</div>

<div class="sidesection" style="margin-top:20px;margin-bottom:20px;">


<a id="lowerfeatureshowcaselink" class="ga-right showcasebackend"
href="https://www.w3schools.com/spaces/" target="_blank">
<picture id="lowerfeatureshowcase">
<source id="lowerfeatureshowcase3001" srcset="/images/img_backend_300.png"
media="(max-width: 990px)" style="border-radius: 5px;">
<source id="lowerfeatureshowcase120" srcset="/images/img_backend_120.png"
media="(max-width: 1260px)" style="border-radius: 5px;">
<source id="lowerfeatureshowcase160" srcset="/images/img_backend_160.png"
media="(max-width: 1700px)" style="border-radius: 5px;">
<img id="lowerfeatureshowcase300" src="./JavaScript
Introduction_files/img_subs_300.png" alt="Subscribe" style="width:auto;border-
radius: 5px;" srcset="/images/img_backend_300.png">
</picture>
</a>
</div>

<script>
var internalFeatureRnd = Math.floor(Math.random() * (5 - 1)) + 1;
var upshowcase120 = document.getElementById("upperfeatureshowcase120");
var upshowcase160 = document.getElementById("upperfeatureshowcase160");
var upshowcase300 = document.getElementById("upperfeatureshowcase300");
var upshowcase3001 = document.getElementById("upperfeatureshowcase3001");
var upshowcaselink = document.getElementById("upperfeatureshowcaselink");
var lowshowcase120 = document.getElementById("lowerfeatureshowcase120");
var lowshowcase160 = document.getElementById("lowerfeatureshowcase160");
var lowshowcase300 = document.getElementById("lowerfeatureshowcase300");
var lowshowcase3001 = document.getElementById("lowerfeatureshowcase3001");
var lowshowcaselink = document.getElementById("lowerfeatureshowcaselink");

if (internalFeatureRnd == 2) {
upshowcase120.srcset = "/images/img_subs_120.png";
upshowcase160.srcset = "/images/img_subs_160.png";
upshowcase300.srcset = "/images/img_subs_300.png";
upshowcase3001.srcset = "/images/img_subs_300.png";
upshowcaselink.href = "https://www.w3schools.com/spaces/";
upshowcaselink.classList.remove("showcasebackend");
upshowcaselink.classList.add("showcasesubs");
lowshowcase120.srcset = "/images/img_bootcamp_120.png";
lowshowcase160.srcset = "/images/img_bootcamp_160.png";
lowshowcase300.srcset = "/images/img_bootcamp_300.png";
lowshowcase3001.srcset = "/images/img_bootcamp_300.png";
lowshowcaselink.href = "https://www.w3schools.com/bootcamp/";
lowshowcaselink.classList.remove("showcasesubs");
lowshowcaselink.classList.add("showcasebootcamp");
} else if (internalFeatureRnd == 3) {
upshowcase120.srcset = "/images/img_bootcamp_120.png";
upshowcase160.srcset = "/images/img_bootcamp_160.png";
upshowcase300.srcset = "/images/img_bootcamp_300.png";
upshowcase3001.srcset = "/images/img_bootcamp_300.png";
upshowcaselink.href = "https://www.w3schools.com/bootcamp/";
upshowcaselink.classList.remove("showcasebackend");
upshowcaselink.classList.add("showcasebootcamp");
lowshowcase120.srcset = "/images/img_fullaccess3_120.png";
lowshowcase160.srcset = "/images/img_fullaccess3_160.png";
lowshowcase300.srcset = "/images/img_fullaccess3_300.png";
lowshowcase3001.srcset = "/images/img_fullaccess3_300.png";
lowshowcaselink.href =
"https://campus.w3schools.com/collections/course-catalog/products/w3schools-full-
access-course";
lowshowcaselink.classList.remove("showcasesubs");
lowshowcaselink.classList.add("showcasefullaccess");
} else if (internalFeatureRnd == 4) {
upshowcase120.srcset = "/images/img_fullaccess3_120.png";
upshowcase160.srcset = "/images/img_fullaccess3_160.png";
upshowcase300.srcset = "/images/img_fullaccess3_300.png";
upshowcase3001.srcset = "/images/img_fullaccess3_300.png";
upshowcaselink.href =
"https://campus.w3schools.com/collections/course-catalog/products/w3schools-full-
access-course";
upshowcaselink.classList.remove("showcasebackend");
upshowcaselink.classList.add("showcasefullaccess");
lowshowcase120.srcset = "/images/img_backend_120.png";
lowshowcase160.srcset = "/images/img_backend_160.png";
lowshowcase300.srcset = "/images/img_backend_300.png";
lowshowcase3001.srcset = "/images/img_backend_300.png";
lowshowcaselink.href = "https://www.w3schools.com/spaces/";
lowshowcaselink.classList.remove("showcasesubs");
lowshowcaselink.classList.add("showcasebackend");
}
function addTryitSpaces(subject) {
let spacesButt = document.createElement("a");
let ribb = document.createElement("span");
spacesButt.innerHTML="Get your own " + subject + " Server"
spacesButt.classList.add("ws-black", "ws-hover-black", "spaces-tryit", "ga-
featured");
spacesButt.href="https://www.w3schools.com/spaces/";
spacesButt.setAttribute("title", "W3Schools Spaces");
spacesButt.setAttribute("target", "_blank");

var tryits = document.getElementsByClassName("w3-example");


for (var i = 0; i < tryits.length; i++) {
if (tryits[i].firstElementChild.nodeName == "H3") {
tryits[i].firstElementChild.appendChild(spacesButt.cloneNode(true));
break;
}
}
}

switch (subjectFolder) {
case "cpp":
subjectText = "C++";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/c-course-1?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "java":
subjectText = "Java";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/java-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
addTryitSpaces(subjectText);
break;
case "bootstrap4":
subjectText = "Bootstrap 4";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/bootstrap-4-
course?utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "xml":
subjectText = "XML";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/xml-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "jquery":
subjectText = "jQuery";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/jquery-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "accessibility":
subjectText = "Accessibility";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/accessibility-
course?utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "bootstrap":
subjectText = "Bootstrap 3";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/bootstrap-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "html":
subjectText = "HTML";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/html-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "tags":
subjectText = "HTML";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/html-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "css":
subjectText = "CSS";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/css-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "cssref":
subjectText = "CSS";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/css-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "js":
subjectText = "JavaScript";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/javascript-
course?utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "jsref":
subjectText = "JavaScript";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/javascript-
course?utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "react":
subjectText = "React.js";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/react-js-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
if (upshowcaselink.classList.contains("showcasebackend") == true) {
upshowcase120.srcset = "/images/img_backend_120_react.png";
upshowcase160.srcset = "/images/img_backend_160_react.png";
upshowcase300.srcset = "/images/img_backend_300_react.png";
upshowcase3001.srcset = "/images/img_backend_300_react.png";
} else if (lowshowcaselink.classList.contains("showcasebackend") == true) {
lowshowcase120.srcset = "/images/img_backend_120_react.png";
lowshowcase160.srcset = "/images/img_backend_160_react.png";
lowshowcase300.srcset = "/images/img_backend_300_react.png";
lowshowcase3001.srcset = "/images/img_backend_300_react.png";
}
addTryitSpaces(subjectText);
break;
case "sql":
subjectText = "SQL";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/sql-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
addTryitSpaces(subjectText);
break;
case "mysql":
addTryitSpaces("SQL");
break;
case "php":
subjectText = "PHP";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/php-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
if (upshowcaselink.classList.contains("showcasebackend") == true) {
upshowcase120.srcset = "/images/img_backend_120_php.png";
upshowcase160.srcset = "/images/img_backend_160_php.png";
upshowcase300.srcset = "/images/img_backend_300_php.png";
upshowcase3001.srcset = "/images/img_backend_300_php.png";
} else if (lowshowcaselink.classList.contains("showcasebackend") == true) {
lowshowcase120.srcset = "/images/img_backend_120_php.png";
lowshowcase160.srcset = "/images/img_backend_160_php.png";
lowshowcase300.srcset = "/images/img_backend_300_php.png";
lowshowcase3001.srcset = "/images/img_backend_300_php.png";
}
addTryitSpaces(subjectText);
break;
case "cybersecurity":
subjectText = "Cyber Security";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/cyber-security-
course?utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "r":
subjectText = "R";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/r-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
break;
case "numpy":
subjectText = "Numpy";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/numpy-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
if (upshowcaselink.classList.contains("showcasebackend") == true) {
upshowcase120.srcset = "/images/img_backend_120_numpy.png";
upshowcase160.srcset = "/images/img_backend_160_numpy.png";
upshowcase300.srcset = "/images/img_backend_300_numpy.png";
upshowcase3001.srcset = "/images/img_backend_300_numpy.png";
} else if (lowshowcaselink.classList.contains("showcasebackend") == true) {
lowshowcase120.srcset = "/images/img_backend_120_numpy.png";
lowshowcase160.srcset = "/images/img_backend_160_numpy.png";
lowshowcase300.srcset = "/images/img_backend_300_numpy.png";
lowshowcase3001.srcset = "/images/img_backend_300_numpy.png";
}
addTryitSpaces("Python");
break;
case "django":
if (upshowcaselink.classList.contains("showcasebackend") == true) {
upshowcase120.srcset = "/images/img_backend_120_django.png";
upshowcase160.srcset = "/images/img_backend_160_django.png";
upshowcase300.srcset = "/images/img_backend_300_django.png";
upshowcase3001.srcset = "/images/img_backend_300_django.png";
} else if (lowshowcaselink.classList.contains("showcasebackend") == true) {
lowshowcase120.srcset = "/images/img_backend_120_django.png";
lowshowcase160.srcset = "/images/img_backend_160_django.png";
lowshowcase300.srcset = "/images/img_backend_300_django.png";
lowshowcase3001.srcset = "/images/img_backend_300_django.png";
}
addTryitSpaces("Django");
break;
case "typescript":
subjectText = "TypeScript";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/learn-typescript?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";

if (upshowcaselink.classList.contains("showcasebackend") == true) {
upshowcase120.srcset = "/images/img_backend_120_ts.png";
upshowcase160.srcset = "/images/img_backend_160_ts.png";
upshowcase300.srcset = "/images/img_backend_300_ts.png";
upshowcase3001.srcset = "/images/img_backend_300_ts.png";
} else if (lowshowcaselink.classList.contains("showcasebackend") == true) {
lowshowcase120.srcset = "/images/img_backend_120_ts.png";
lowshowcase160.srcset = "/images/img_backend_160_ts.png";
lowshowcase300.srcset = "/images/img_backend_300_ts.png";
lowshowcase3001.srcset = "/images/img_backend_300_ts.png";
}
addTryitSpaces("TypeScript");
break;
case "nodejs":
if (upshowcaselink.classList.contains("showcasebackend") == true) {
upshowcase120.srcset = "/images/img_backend_120_node.png";
upshowcase160.srcset = "/images/img_backend_160_node.png";
upshowcase300.srcset = "/images/img_backend_300_node.png";
upshowcase3001.srcset = "/images/img_backend_300_node.png";
} else if (lowshowcaselink.classList.contains("showcasebackend") == true) {
lowshowcase120.srcset = "/images/img_backend_120_node.png";
lowshowcase160.srcset = "/images/img_backend_160_node.png";
lowshowcase300.srcset = "/images/img_backend_300_node.png";
lowshowcase3001.srcset = "/images/img_backend_300_node.png";
}
addTryitSpaces("Node.js");
break;
case "pandas":
subjectText = "Pandas";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/pandas-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
if (upshowcaselink.classList.contains("showcasebackend") == true) {
upshowcase120.srcset = "/images/img_backend_120_pandas.png";
upshowcase160.srcset = "/images/img_backend_160_pandas.png";
upshowcase300.srcset = "/images/img_backend_300_pandas.png";
upshowcase3001.srcset = "/images/img_backend_300_pandas.png";
} else if (lowshowcaselink.classList.contains("showcasebackend") == true) {
lowshowcase120.srcset = "/images/img_backend_120_pandas.png";
lowshowcase160.srcset = "/images/img_backend_160_pandas.png";
lowshowcase300.srcset = "/images/img_backend_300_pandas.png";
lowshowcase3001.srcset = "/images/img_backend_300_pandas.png";
}
addTryitSpaces("Python");
break;
case "python":
subjectText = "Python";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/python-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
if (upshowcaselink.classList.contains("showcasebackend") == true) {
upshowcase120.srcset = "/images/img_backend_120_python.png";
upshowcase160.srcset = "/images/img_backend_160_python.png";
upshowcase300.srcset = "/images/img_backend_300_python.png";
upshowcase3001.srcset = "/images/img_backend_300_python.png";
} else if (lowshowcaselink.classList.contains("showcasebackend") == true) {
lowshowcase120.srcset = "/images/img_backend_120_python.png";
lowshowcase160.srcset = "/images/img_backend_160_python.png";
lowshowcase300.srcset = "/images/img_backend_300_python.png";
lowshowcase3001.srcset = "/images/img_backend_300_python.png";
}
addTryitSpaces(subjectText);
break;
case "cs":
subjectText = "C#";
subjectLink =
"https://campus.w3schools.com/collections/course-catalog/products/c-course?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
addTryitSpaces(subjectText);
break;
case "vue":
addTryitSpaces("Vue");
break;
default:
subjectText = "a";
subjectLink = "https://campus.w3schools.com/collections/course-catalog?
utm_source=classic&utm_medium=tutorials&utm_campaign=right-side-ad";
}
if (typeof subjectText == 'undefined') {
subjectText = "a";
subjectLink = "https://campus.w3schools.com/collections/course-catalog";
}
if (subjectText != "a") {
document.getElementById("courses_subject_text").innerHTML = "a " + subjectText +
"<br>";
document.getElementById("courses_subject_img_link").href = subjectLink;
document.getElementById("courses_get_started_btn").href = subjectLink;
}
</script>

<div id="stickypos" class="sidesection" style="text-


align:center;position:sticky;top:50px;">
<div id="stickyadcontainer" style="width: 172.156px;">
<div style="position:relative;margin:auto;">

<div id="adngin-sidebar_sticky-0-stickypointer" style=""><div id="adngin-


sidebar_sticky-0" class="" data-google-query-id="CNn_-uX-5_4CFVFtfQod6EoOdA"
style=""><div id="sn_ad_label_adngin-sidebar_sticky-0" class="sn_ad_label"
style="color:#000000;font-size:12px;margin:0;text-align:center;">ADVERTISEMENT</
div><div
id="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//sidebar_sticky_0__c
ontainer__" style="border: 0pt none;"><iframe
id="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//sidebar_sticky_0"
name="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//sidebar_sticky_0"
title="3rd party ad content" width="160" height="600" scrolling="no"
marginwidth="0" marginheight="0" frameborder="0" role="region" aria-
label="Advertisement" tabindex="0" style="border: 0px; vertical-align: bottom;"
data-load-complete="true" data-google-container-id="1" src="./JavaScript
Introduction_files/saved_resource(4).html"></iframe></div></div></div>
<script>
function secondSnigel() {
if(window.adngin && window.adngin.adnginLoaderReady) {
if (Number(w3_getStyleValue(document.getElementById("main"),
"height").replace("px", "")) > 2200) {
if (document.getElementById("adngin-mid_content-0")) {
adngin.queue.push(function()
{ adngin.cmd.startAuction(["sidebar_sticky", "mid_content" ]); });
} else {
adngin.queue.push(function()
{ adngin.cmd.startAuction(["sidebar_sticky"]); });
}
} else {
if (document.getElementById("adngin-mid_content-0")) {
adngin.queue.push(function()
{ adngin.cmd.startAuction(["mid_content"]); });
}
}
} else {
window.addEventListener('adnginLoaderReady', function() {
if (Number(w3_getStyleValue(document.getElementById("main"),
"height").replace("px", "")) > 2200) {
if (document.getElementById("adngin-mid_content-0")) {
adngin.queue.push(function()
{ adngin.cmd.startAuction(["sidebar_sticky", "mid_content" ]); });
} else {
adngin.queue.push(function()
{ adngin.cmd.startAuction(["sidebar_sticky"]); });
}
} else {
if (document.getElementById("adngin-mid_content-0")) {
adngin.queue.push(function()
{ adngin.cmd.startAuction(["mid_content"]); });
}
}
});
}
}
</script>

</div>
</div>
</div>

<script>
uic_r_c()
</script>

</div>
</div>
<div id="footer" class="footer w3-container w3-white">

<hr>
<div style="overflow:auto">
<div class="bottomad">
<!-- BottomMediumRectangle -->
<!--<pre>bottom_medium_rectangle, all: [970,250][300,250][336,280]</pre>-->
<div id="adngin-bottom_left-0" style="padding:0 10px 10px
0;float:left;width:auto;" data-google-query-id="CIGg_eX-5_4CFVFtfQod6EoOdA"><div
id="sn_ad_label_adngin-bottom_left-0" class="sn_ad_label"
style="color:#000000;font-size:12px;margin:0;text-align:center;">ADVERTISEMENT</
div><div
id="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//bottom_medium_recta
ngle_0__container__" style="border: 0pt none;"><iframe
id="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//bottom_medium_recta
ngle_0" name="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//
bottom_medium_rectangle_0" title="3rd party ad content" width="970" height="250"
scrolling="no" marginwidth="0" marginheight="0" frameborder="0" role="region" aria-
label="Advertisement" tabindex="0" style="border: 0px; vertical-align: bottom;"
data-load-complete="true" data-google-container-id="5" src="./JavaScript
Introduction_files/saved_resource(5).html"></iframe></div></div>
<!-- adspace bmr -->
<!-- RightBottomMediumRectangle -->
<!--<pre>right_bottom_medium_rectangle, desktop: [300,250][336,280]</pre>-->
<div id="adngin-bottom_right-0" style="padding:0 10px 10px
0;float:left;width:auto;" data-google-query-id="CN7_-uX-5_4CFVFtfQod6EoOdA"><div
id="sn_ad_label_adngin-bottom_right-0" class="sn_ad_label"
style="color:#000000;font-size:12px;margin:0;text-align:center;">ADVERTISEMENT</
div><div
id="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//right_bottom_medium
_rectangle_0__container__" style="border: 0pt none;"><iframe
id="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//right_bottom_medium
_rectangle_0" name="google_ads_iframe_/22152718,16833175/sws-hb//w3schools.com//
right_bottom_medium_rectangle_0" title="3rd party ad content" width="300"
height="250" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"
role="region" aria-label="Advertisement" tabindex="0" style="border: 0px; vertical-
align: bottom;" data-load-complete="true" data-google-container-id="6"
src="./JavaScript Introduction_files/saved_resource(6).html"></iframe></div></div>
</div>
</div>

<hr>
<div class="w3-row-padding w3-center w3-small" style="margin:auto">

<div class="w3-col m12 w3-hide-medium w3-hide-small" style="width:20%">


<a class="w3-btn ws-black w3-block w3-round ga-bottom"
href="https://www.w3schools.com/spaces/index.html" style="text-
decoration:none;margin-top:1px;margin-bottom:1px;font-size:17px;font-family:Source
Sans Pro, sans-serif;">Spaces</a>
</div>
<div class="w3-col m12 w3-hide-large">
<a class="w3-btn ws-black w3-block w3-round ga-bottom"
href="https://www.w3schools.com/spaces/index.html" style="text-
decoration:none;margin-top:1px;margin-bottom:1px;font-size:17px;font-family:Source
Sans Pro, sans-serif;">Spaces</a>
</div>

<div class="w3-col m12 w3-hide-medium w3-hide-small" style="width:20%">


<a class="w3-btn ws-black w3-block w3-round ga-bottom"
href="https://www.w3schools.com/pro/index.php" style="text-decoration:none;margin-
top:1px;margin-bottom:1px;font-size:17px;font-family:Source Sans Pro, sans-serif;"
title="Upgrade to Improve Your Learning Experiences">Upgrade</a>
</div>
<div class="w3-col m12 w3-hide-large">
<a class="w3-btn ws-black w3-block w3-round ga-bottom"
href="https://www.w3schools.com/pro/index.php" style="text-decoration:none;margin-
top:1px;margin-bottom:1px;font-size:17px;font-family:Source Sans Pro, sans-serif;"
title="Upgrade to Improve Your Learning Experiences">Upgrade</a>
</div>

<div class="w3-col m12 w3-hide-medium w3-hide-small" style="width:20%">


<a class="w3-btn ws-black w3-block w3-round ga-bottom"
href="https://campus.w3schools.com/pages/newsletter" target="_blank" style="white-
space:nowrap;text-decoration:none;margin-top:1px;margin-bottom:1px;font-
size:17px;font-family:Source Sans Pro, sans-serif;">Newsletter</a>
</div>
<div class="w3-col m12 w3-hide-large">
<a class="w3-btn ws-black w3-block w3-round ga-bottom"
href="https://campus.w3schools.com/pages/newsletter" target="_blank" style="white-
space:nowrap;text-decoration:none;margin-top:1px;margin-bottom:1px;font-
size:17px;font-family:Source Sans Pro, sans-serif;">Newsletter</a>
</div>

<div class="w3-col m12 w3-hide-medium w3-hide-small" style="width:20%">


<a class="w3-btn ws-black w3-block w3-round ga-bottom"
href="https://campus.w3schools.com/collections/certifications" target="_blank"
style="text-decoration:none;margin-top:1px;margin-bottom:1px;font-size:17px;font-
family:Source Sans Pro, sans-serif;">Get Certified</a>
</div>

<div class="w3-col m12 w3-hide-large">


<a class="w3-btn ws-black w3-block w3-round ga-bottom"
href="https://campus.w3schools.com/collections/certifications" target="_blank"
style="text-decoration:none;margin-top:1px;margin-bottom:1px;font-size:17px;font-
family:Source Sans Pro, sans-serif;">Get Certified</a>
</div>

<div class="w3-col m12 w3-hide-medium w3-hide-small" style="width:20%">


<a class="w3-btn ws-black w3-block w3-round ga-bottom"
href="javascript:void(0);" onclick="displayError();return false" style="white-
space:nowrap;text-decoration:none;margin-top:1px;margin-bottom:1px;font-
size:17px;font-family:Source Sans Pro, sans-serif;">Report Error</a>
</div>
<div class="w3-col m12 w3-hide-large">
<a class="w3-btn ws-black w3-block w3-round ga-bottom"
href="javascript:void(0);" onclick="displayError();return false" style="white-
space:nowrap;text-decoration:none;margin-top:1px;margin-bottom:1px;font-
size:17px;font-family:Source Sans Pro, sans-serif;">Report Error</a>
</div>

</div>
<hr>
<div class="ws-grey w3-padding w3-margin-bottom" id="err_form"
style="display:none;position:relative">
<span onclick="this.parentElement.style.display=&#39;none&#39;" class="w3-button
w3-display-topright w3-large">×</span>

<h2>Report Error</h2>
<p>If you want to report an error, or if you want to make a suggestion, do not
hesitate to send us an e-mail:</p>
<p>help@w3schools.com</p>
<br>

</div>
<div class="w3-container ws-grey w3-padding" id="err_sent"
style="display:none;position:relative">
<span onclick="this.parentElement.style.display=&#39;none&#39;" class="w3-button
w3-display-topright">×</span>
<h2>Thank You For Helping Us!</h2>
<p>Your message has been sent to W3Schools.</p>
</div>

<div class="w3-row w3-center w3-small">


<div class="w3-col l3 m6 s12">
<div class="top10">
<h5 style="font-family: &#39;Source Sans Pro&#39;, sans-serif;">Top Tutorials</h5>
<a href="https://www.w3schools.com/html/default.asp" class="ga-bottom">HTML
Tutorial</a><br>
<a href="https://www.w3schools.com/css/default.asp" class="ga-bottom">CSS
Tutorial</a><br>
<a href="https://www.w3schools.com/js/default.asp" class="ga-bottom">JavaScript
Tutorial</a><br>
<a href="https://www.w3schools.com/howto/default.asp" class="ga-bottom">How To
Tutorial</a><br>
<a href="https://www.w3schools.com/sql/default.asp" class="ga-bottom">SQL
Tutorial</a><br>
<a href="https://www.w3schools.com/python/default.asp" class="ga-bottom">Python
Tutorial</a><br>
<a href="https://www.w3schools.com/w3css/default.asp" class="ga-bottom">W3.CSS
Tutorial</a><br>
<a href="https://www.w3schools.com/bootstrap/bootstrap_ver.asp" class="ga-
bottom">Bootstrap Tutorial</a><br>
<a href="https://www.w3schools.com/php/default.asp" class="ga-bottom">PHP
Tutorial</a><br>
<a href="https://www.w3schools.com/java/default.asp" class="ga-bottom">Java
Tutorial</a><br>
<a href="https://www.w3schools.com/cpp/default.asp" class="ga-bottom">C++
Tutorial</a><br>
<a href="https://www.w3schools.com/jquery/default.asp" class="ga-bottom">jQuery
Tutorial</a><br>
</div>
</div>
<div class="w3-col l3 m6 s12">
<div class="top10">
<h5 style="font-family: &#39;Source Sans Pro&#39;, sans-serif;">Top References</h5>
<a href="https://www.w3schools.com/tags/default.asp" class="ga-bottom">HTML
Reference</a><br>
<a href="https://www.w3schools.com/cssref/index.php" class="ga-bottom">CSS
Reference</a><br>
<a href="https://www.w3schools.com/jsref/default.asp" class="ga-bottom">JavaScript
Reference</a><br>
<a href="https://www.w3schools.com/sql/sql_ref_keywords.asp" class="ga-bottom">SQL
Reference</a><br>
<a href="https://www.w3schools.com/python/python_reference.asp" class="ga-
bottom">Python Reference</a><br>
<a href="https://www.w3schools.com/w3css/w3css_references.asp" class="ga-
bottom">W3.CSS Reference</a><br>
<a href="https://www.w3schools.com/bootstrap/bootstrap_ref_all_classes.asp"
class="ga-bottom">Bootstrap Reference</a><br>
<a href="https://www.w3schools.com/php/php_ref_overview.asp" class="ga-bottom">PHP
Reference</a><br>
<a href="https://www.w3schools.com/colors/colors_names.asp" class="ga-bottom">HTML
Colors</a><br>
<a href="https://www.w3schools.com/java/java_ref_keywords.asp" class="ga-
bottom">Java Reference</a><br>
<a href="https://www.w3schools.com/angular/angular_ref_directives.asp" class="ga-
bottom">Angular Reference</a><br>
<a href="https://www.w3schools.com/jquery/jquery_ref_overview.asp" class="ga-
bottom">jQuery Reference</a><br>
</div>
</div>
<div class="w3-col l3 m6 s12">
<div class="top10">
<h5 style="font-family: &#39;Source Sans Pro&#39;, sans-serif;">Top Examples</h5>
<a href="https://www.w3schools.com/html/html_examples.asp" class="ga-bottom">HTML
Examples</a><br>
<a href="https://www.w3schools.com/css/css_examples.asp" class="ga-bottom">CSS
Examples</a><br>
<a href="https://www.w3schools.com/js/js_examples.asp" class="ga-bottom">JavaScript
Examples</a><br>
<a href="https://www.w3schools.com/howto/default.asp" class="ga-bottom">How To
Examples</a><br>
<a href="https://www.w3schools.com/sql/sql_examples.asp" class="ga-bottom">SQL
Examples</a><br>
<a href="https://www.w3schools.com/python/python_examples.asp" class="ga-
bottom">Python Examples</a><br>
<a href="https://www.w3schools.com/w3css/w3css_examples.asp" class="ga-
bottom">W3.CSS Examples</a><br>
<a href="https://www.w3schools.com/bootstrap/bootstrap_examples.asp" class="ga-
bottom">Bootstrap Examples</a><br>
<a href="https://www.w3schools.com/php/php_examples.asp" class="ga-bottom">PHP
Examples</a><br>
<a href="https://www.w3schools.com/java/java_examples.asp" class="ga-bottom">Java
Examples</a><br>
<a href="https://www.w3schools.com/xml/xml_examples.asp" class="ga-bottom">XML
Examples</a><br>
<a href="https://www.w3schools.com/jquery/jquery_examples.asp" class="ga-
bottom">jQuery Examples</a><br>
</div>
</div>
<div class="w3-col l3 m6 s12">
<div class="top10">

<a href="https://campus.w3schools.com/collections/course-catalog" target="_blank"


class="ga-bottom"><h5 style="font-family: &#39;Source Sans Pro&#39;, sans-
serif;">Get Certified</h5></a>
<a href="https://campus.w3schools.com/collections/certifications/products/html-
certificate" target="_blank" class="ga-bottom">HTML Certificate</a><br>
<a href="https://campus.w3schools.com/collections/certifications/products/css-
certificate" target="_blank" class="ga-bottom">CSS Certificate</a><br>
<a href="https://campus.w3schools.com/collections/certifications/products/
javascript-certificate" target="_blank" class="ga-bottom">JavaScript
Certificate</a><br>
<a href="https://campus.w3schools.com/collections/certifications/products/front-
end-certificate" target="_blank" class="ga-bottom">Front End Certificate</a><br>
<a href="https://campus.w3schools.com/collections/certifications/products/sql-
certificate" target="_blank" class="ga-bottom">SQL Certificate</a><br>
<a href="https://campus.w3schools.com/collections/certifications/products/python-
certificate" target="_blank" class="ga-bottom">Python Certificate</a><br>
<a href="https://campus.w3schools.com/collections/certifications/products/php-
certificate" target="_blank" class="ga-bottom">PHP Certificate</a><br>
<a href="https://campus.w3schools.com/collections/certifications/products/jquery-
certificate" target="_blank" class="ga-bottom">jQuery Certificate</a><br>
<a href="https://campus.w3schools.com/collections/certifications/products/java-
certificate" target="_blank" class="ga-bottom">Java Certificate</a><br>
<a href="https://campus.w3schools.com/collections/certifications/products/c-
certificate" target="_blank" class="ga-bottom">C++ Certificate</a><br>
<a href="https://campus.w3schools.com/collections/certifications/products/c-
certificate-1" target="_blank" class="ga-bottom">C# Certificate</a><br>
<a href="https://campus.w3schools.com/collections/certifications/products/xml-
certificate" target="_blank" class="ga-bottom">XML Certificate</a><br>

</div>
</div>
</div>

<hr>
<div class="w3-opacity" style="font-size:12px;text-align:right;margin-
bottom:16px;margin-right:8px;">
<a href="https://www.w3schools.com/forum/default.asp" target="_blank"
class="xw3-text-grey xw3-hover-text-black ga-bottom" style="text-decoration:none"
title="Forum">FORUM</a> |
<a href="https://www.w3schools.com/about/default.asp" target="_top" class="xw3-
text-grey xw3-hover-text-black ga-bottom" style="text-decoration:none" title="About
W3Schools">ABOUT</a>
</div>

<div class="w3-center w3-small w3-opacity">


W3Schools is optimized for learning and training. Examples might be simplified to
improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we
cannot warrant full correctness of all content.
While using W3Schools, you agree to have read and accepted our <a
href="https://www.w3schools.com/about/about_copyright.asp" class="ga-bottom">terms
of use</a>,
<a href="https://www.w3schools.com/about/about_privacy.asp" class="ga-
bottom">cookie and privacy policy</a>.<br><br>
<a href="https://www.w3schools.com/about/about_copyright.asp" class="ga-
bottom">Copyright 1999-2023</a> by Refsnes Data. All Rights Reserved.<br>
<a href="https://www.w3schools.com/w3css/default.asp" class="ga-bottom">W3Schools
is Powered by W3.CSS</a>.<br><br>
</div>
<div class="w3-center w3-small">
<a href="https://www.w3schools.com/" class="ga-bottom">
<i class="fa fa-logo ws-text-green ws-hover-text-green"
style="position:relative;font-size:42px!important;"></i>
</a></div><a href="https://www.w3schools.com/" class="ga-bottom">
<br><br>
</a></div><a href="https://www.w3schools.com/" class="ga-bottom">

</a></div><iframe name="__tcfapiLocator" style="display: none;" src="./JavaScript


Introduction_files/saved_resource(7).html"></iframe><iframe name="__uspapiLocator"
style="display: none;" src="./JavaScript
Introduction_files/saved_resource(8).html"></iframe><iframe
name="__adconsentLocator" style="display: none;" src="./JavaScript
Introduction_files/saved_resource(9).html"></iframe><a
href="https://www.w3schools.com/" class="ga-bottom">
<script src="./JavaScript
Introduction_files/w3schools_footer.js.download"></script>

<script>
MyLearning.loadUser('footer', function () {
if (UserSession.loggedIn) {
document.getElementById("signupbtn_topnav").style.display = "none";
document.getElementById("spacesbtn_topnav").style.display = "block";
} else {
addMyLearnButt();
}
});
function docReady(fn) {
document.addEventListener("DOMContentLoaded", fn);
if (document.readyState === "interactive" || document.readyState === "complete"
) {
fn();
}
}
uic_r_z();
uic_r_d()

function addMyLearnButt() {
let nav = document.getElementsByClassName("nextprev");
if (document.body.contains(nav[1])) {
if ((nav[1].firstElementChild.innerHTML.indexOf("Previous") ||
nav[1].firstElementChild.innerHTML.indexOf("Home") !== -1) &&
(nav[1].firstElementChild.nextElementSibling.innerHTML.indexOf("Next") !== -1)) {
let myLearnButt = document.createElement("a");
myLearnButt.innerHTML="Log in to track progress";
myLearnButt.classList.add("w3-btn", "w3-hide-small", "myl-nav-butt");
myLearnButt.href="https://www.w3schools.com/signup/?
utm_source=classic&utm_medium=" + subjectFolder +
"_tutorial&utm_campaign=button_lower_navigation";
myLearnButt.setAttribute("title", "Sign Up and improve Your Learning
Experience");
myLearnButt.setAttribute("target", "_blank");
nav[1].classList.add("w3-center");
nav[1].firstElementChild.insertAdjacentElement("afterend", myLearnButt);
}
}
}
</script>

<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
function myFunction() {
let x;
let text = "Input OK";

//Get the value of input field with id="numb"


x = document.getElementById("numb").value;
// If x is Not a Number, or x is less than one, or x is grather than 10 then
if (isNaN(x) || x < 1 || x > 10) {
text = "Not valid";
}
document.getElementById("demo").innerHTML = text;
}
</script><iframe src="./JavaScript Introduction_files/container(1).html"
style="visibility: hidden; display: none;"></iframe>

</a><div id="timelines-ext" style="display: block;" class=""><div class="sc-ehvNnt


NxQmE"><div id="tlx-widgets" class="sc-laZRCg iaccmg"></div><div id="WRAPPER"
class="sc-lbVpMG dlaFLU"><div class="tlx-dragable-component react-draggable"
style="transform: translate(1223.7px, 520.242px);"><div class="sc-cOxWqc dREewl
tlx-show-hide tlx-dragable-component"><img
src="chrome-extension://oljnbokalmnlbngdeejnfhbfgioobdbm/assets/logo.png"
alt="logo.png" width="40px" title="Timeline extension" class="sc-bYMpWt
bRYqwy"></div></div></div></div></div><iframe src="./JavaScript
Introduction_files/iu3.html" style="display: none;"></iframe><iframe
src="./JavaScript Introduction_files/aframe.html" width="0" height="0"
style="display: none;"></iframe><iframe name="google_ads_top_frame"
id="google_ads_top_frame" style="display: none; position: fixed; left: -999px; top:
-999px; width: 0px; height: 0px;" src="./JavaScript
Introduction_files/saved_resource(10).html"></iframe></body><iframe sandbox="allow-
scripts allow-same-origin" id="6602c316c7a3ac3" frameborder="0"
allowtransparency="true" marginheight="0" marginwidth="0" width="0" hspace="0"
vspace="0" height="0" style="height:0px;width:0px;display:none;" scrolling="no"
src="./JavaScript Introduction_files/saved_resource(11).html">
</iframe><iframe sandbox="allow-scripts allow-same-origin" id="674b8b14f94ad02"
frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0" width="0"
hspace="0" vspace="0" height="0" style="height:0px;width:0px;display:none;"
scrolling="no" src="./JavaScript Introduction_files/saved_resource(12).html">
</iframe><iframe sandbox="allow-scripts allow-same-origin" id="6845f758197efd2"
frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0" width="0"
hspace="0" vspace="0" height="0" style="height:0px;width:0px;display:none;"
scrolling="no" src="./JavaScript Introduction_files/sync.html">
</iframe><iframe sandbox="allow-scripts allow-same-origin" id="69c7880593e89cb"
frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0" width="0"
hspace="0" vspace="0" height="0" style="height:0px;width:0px;display:none;"
scrolling="no" src="./JavaScript Introduction_files/connectmyusers.html">
</iframe><iframe sandbox="allow-scripts allow-same-origin" id="70a28a88fade5bf"
frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0" width="0"
hspace="0" vspace="0" height="0" style="height:0px;width:0px;display:none;"
scrolling="no" src="./JavaScript Introduction_files/async_usersync.html">
</iframe><iframe sandbox="allow-scripts allow-same-origin" id="71e2083766944e5"
frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0" width="0"
hspace="0" vspace="0" height="0" style="height:0px;width:0px;display:none;"
scrolling="no" src="./JavaScript Introduction_files/user_sync.html">
</iframe><iframe sandbox="allow-scripts allow-same-origin" id="721e61aabdc66ab"
frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0" width="0"
hspace="0" vspace="0" height="0" style="height:0px;width:0px;display:none;"
scrolling="no" src="./JavaScript Introduction_files/ixmatch.html">
</iframe><iframe sandbox="allow-scripts allow-same-origin" id="739e8cbec5caba5"
frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0" width="0"
hspace="0" vspace="0" height="0" style="height:0px;width:0px;display:none;"
scrolling="no" src="./JavaScript Introduction_files/usync.html">
</iframe><iframe sandbox="allow-scripts allow-same-origin" id="74625621c576ebd"
frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0" width="0"
hspace="0" vspace="0" height="0" style="height:0px;width:0px;display:none;"
scrolling="no" src="./JavaScript Introduction_files/pd.html">
</iframe></html>

You might also like