Course Content

Learn JavaScript In One Video In Hindi (2018)

Hey everyone,
In this video, I have tried to explain basic concepts of JavaScript...
Though one video is not enough to learn everything about JavaScript, this video is enough to get the basic idea of JavaScript programming language. Once you have watched this video, I can give you a guarantee that you will be easily able to code web apps in frameworks like nodejs, reactjs, angularjs etc.

If you have already watched this video, have learned JavaScript and want to revise some specific key points, then skip directly to the points you are looking for: 0:10 = Installing Sublime text editor 1:45 = How to execute Javascript 3:30 = How to write over Document 4:48 = Some Basic Things About Javascript 5:00 = Creating Folder For Javascript Files 9:32 = Paragraph Tag 11:03 = How To Check Error 12:05 = Comments In Javascript 13:52 = Variables In Javascript 19:23 = Using Alert Function In Javascript 21:15 = Mathematical Operations 26:44 = Math Functions 29:50 = Strings Functions In Javascript 33:30 = Logics In Javascript 34:50 = If - Else Condition 40:15 = Loops In Javascript 45:24 = Arrays In Javascript 46:50 = Functions In Javascript 49:00 = Ultimate Tip 49:36 = DHOOM Part 5 53:50 = Fund Me Million To Buy A Ferrari

File test.html as described in the video


<!DOCTYPE html>
<html>
<head>
<title></title>
	
<script type="text/javascript">
//it is valid only for 10 days

</script>
</head>
<body>

<p id="th"></p>
</body>

<script src="test.js"></script>
</html>

File test.js as described in the video



This is a multiline comment
Author : Harry

document.write("This is an external js2");
document.getElementById('th').innerHTML = "This is a para";

var a1 = 45;
var a11=5;
var a2 = "This is me";
document.write(a1+a11,"<br>");
document.write(a1, a11,"<br>");
console.log("This is console");
console.log is used for debugging purposes

var age = prompt("Tell me your age");
alert("Your age is ", age);

document.write("5 + 9 = ", 5+9,"<br>");
document.write("5 - 9 = ", 5-9,"<br>");
document.write("5 * 9 = ", 5*9,"<br>");
document.write("5 / 9 = ", 5/9,"<br>");
document.write("5 % 9 = ", 5%9,"<br>");

var foodcost = prompt("What is the total amount");
var no = prompt("No of people");
document.write("The total cost of food was ", foodcost, "<br>");
document.write("Each one of you has to pay ", (foodcost/no).toFixed(2),"<br>");


*
document.write("2^9 = ", Math.pow(2,9),"<br>" );
document.write("abs(-34) = ", Math.abs(-34),"<br>");
document.write("sqrt(36) = ", Math.sqrt(36),"<br>");


String Functions

var str1 = "CodeWithHarry";
document.write(str1.length,"<br>" );
document.write(str1.indexOf("With"),"<br>" );
document.write(str1.toLowerCase(),"<br>" );



Relational Operators : ==, !=, <, >, >=
Logical Operators : &&, ||

var age = prompt("What is your age");

if (age<20 && age>=10)
{

	document.write("You go to the school");
}

else if(age<10 && age>3)
{
	document.write("You also go to the school");
}

else
{
	document.write("Do whatever you want");
}



var age = prompt("What is your age?");
switch(age)
{

	case "22":
		document.write("22 years old.. okay");
		break;

	case "21":
		document.write("21 years old.. okay");
		break;
		

	case "12":
		document.write("12 years old.. okay");
		break;
		

	default:
		document.write("default years old.. okay");
		break;			

}


var i =1;
while(i<=100)
{
	document.write(i,"<br>");
	i++;
}


var i =101;
do
{
	document.write(i,"<br>");
	i++;
} while(i<=100)




for (var i = 0; i < 2; i++) {
	document.write(i,"<br>");
}



var books = ["Harry potter", "ncert", "ctci", 65];

document.write(books[3]);



function harry(){

	document.write("We are calling harry");
	console.log("We have executed harry function");


}

harry();

Comments(3)

sameerpatel 11 months, 3 weeks ago
Railway Api hona
tejaslade 11 months ago
hello
tejaslade 11 months ago
hello

Resources

No downloadable resources for this video. If you think you need anything, please post it in the QnA!

Course Announcements

Any Course related announcements will be posted here