Course Content
JavaScript Complete Course
0/151
JavaScript Web Programming Step-by-Step: Easy Course in Urdu

JavaScript Introduction
JavaScript Can Change HTML ContentOne of many JavaScript HTML methods is getElementById().The example below “finds” an HTML element (with id=”demo”), and changes the element content (innerHTML) to “Hello JavaScript”:

Join Live Class: Zoom Link

Example

document.getElementById(“demo”).innerHTML = “Hello JavaScript”;

JavaScript Can Change HTML Styles (CSS)Changing the style of an HTML element, is a variant of changing an HTML attribute:

Example

document.getElementById(“demo”).style.fontSize = “35px”;

JavaScript Can Hide HTML ElementsHiding HTML elements can be done by changing the display style:

Example

document.getElementById(“demo”).style.display = “none”;

JavaScript Can Show HTML ElementsShowing hidden HTML elements can also be done by changing the display style:

Example

document.getElementById(“demo”).style.display = “block”;


JavaScript is a programming language that is primarily used for web development. It was created in 1995 by Brendan Eich, and since then, it has become one of the most popular programming languages in the world.
JavaScript is a scripting language, which means that it is interpreted at runtime rather than being compiled into machine code beforehand. This allows for faster development times, as developers can quickly make changes to their code and see the results immediately.JavaScript is mainly used to create dynamic and interactive web pages. It can be used to manipulate HTML and CSS, create animations, and interact with the user through forms and other input elements. It can also be used to build server-side applications using Node.js.JavaScript is supported by all modern web browsers, which makes it a popular choice for web developers. There are also many frameworks and libraries built on top of JavaScript, such as React, Angular, and Vue.js, which make it easier to build complex web applications.Overall, JavaScript is a versatile and powerful programming language that is essential for modern web development.

0% Complete