HTML CSS JavaScript
this page is for learn web development and all the professional skills about HTML CSS and JavaScript
17/04/2026
Android studio learning is here...
رشتوں کی طبیعت
JavaScript accepts both double and single quotes:
Example:
document.getElementById('demo').innerHTML = 'Hello JavaScript';
How to Show date and time in Js
How to show Date and time
Click for display Date and Time.
What is variable in JS?
JavaScript Display Possibilities
JavaScript can "display" data in different ways:
Writing into an HTML element, using innerHTML.
Writing into the HTML output using document.write().
Writing into an alert box, using window.alert().
Writing into the browser console, using console.log().
JavaScript Primitives
A primitive value is a value that has no properties or methods.
A primitive data type is data that has a primitive value.
JavaScript defines 5 types of primitive data types:
string
number
boolean
null
undefined
Primitive values are immutable (they are hardcoded and therefore cannot be changed).
if x = 3.14, you can change the value of x. But you cannot change the value of 3.14.
Value Type Comment
"Hello" string "Hello" is always "Hello"
3.14 number 3.14 is always 3.14
true boolean true is always true
false boolean false is always false
null null (object) null is always null
undefined undefined undefined is always undefined
Who wants complete course of JS?
02/02/2021
HTML DOM TREE
Click here to claim your Sponsored Listing.
Category
Contact the school
Telephone
Website
Address
Okara