Teaching IF Else Statment in JavaScript With HTML and CSS | Experience the Web Development

Опубликовано: 17 Август 2019
на канале: Learn Computer Technologies
3,419
18

The Objective of the Tutorial Video
1) Learn HTML
2) Learn CSS
3) Learn JavaScript
4) Learn Web Development with simultaneous programming in HTML, CSS & JavaScript
5) Experience the Web Development Lab Activities

#webdevelopment, #htmltutorial, #csstutorial, #javascripttutorial



/*
//syntax of if else statement is as follows

if(condition){
//This executes when condition is true
}else{
//This executes when condition is false
}

//syntax of function statement is as follows

function functionName(){

// This executes inner statement when this function is called

}

// syntex for calling of above function is

functionName()

// addEventListener is predefined function of browser

// addEventListener("Event",functionName)

we don't need to give curly braces after function name here

// document.getElementById("btn1")

document and getElementById is also a predefined function which takes elements from html document by
its id

Hope you got it, Thanks for watching.


/*

Direct to Video by Chris Zabriskie is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/...)
Source: http://chriszabriskie.com/dtv/
Artist: http://chriszabriskie.com/