Functions in JavaScript | Web Development Tutorials #53

preview_player
Показать описание

Best Hindi Videos For Learning Programming:

►C Language Complete Course In Hindi -

►JavaScript Complete Course In Hindi -

►Django Complete Course In Hindi -

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

Started Learning Web Development From Your Channel And Already Learned Html And Css Now learning Java script thanks for providing such beautiful content

function comparison(a, b){
if (a>b){
return("a is greater then b")
}
else if (a==b){
return("both are equal")
}
else if(a<b){
return("b is greater then b")
}
}

let a = 1;
let b = 1;
console.log(comparison(a, b))

SakibHassan
Автор

Harry Bro there's no-one who could have taught it any better. Thank you for this series and also for doing it for society i.e. for free, it now even inspires me to do something for this society to make it better. Thank you very much bro.

jeffomega
Автор

it took me approximately two hours and alot of help to write this code .Finally its Done!

function maximum(a, b) {
if (a > b) {
return a;
} else {
return b;
}
}
let a = 33;
let b = 50;
let returnVal = maximum(33, 50);
console.log(returnVal + ' is greater');

Output:
50 is greater

oldestsong
Автор

15:40
program for greater lessthen
<script>
function numVal(a, b){
if(a>b){
console.log("a is greater then b");
}VA
else{
console.log("b is greater then a");
}
}

let returnVal = numVal (10, 20);
</script>

akashmaurya
Автор

Well explained Harry Bhai....and do continue ur best work....many blessings from around the world to u since ur work is beneficiary for

sudarshanmhaisdhune
Автор

function minmax(a, b){
if (a>b){
return "a is greater than b";
}
else if (a<b){
return "b is greater than a";
}
else{
return "a and b is Equal";
}
}

bugbusters.
Автор

Can not be more thankful to you Harry bhai

kasifmansuri
Автор

A BIG THANKYOU HARRY BHAI. you are very good in teaching THANKYOU SO MUCH.

bushrasayed
Автор

Your teaching style is simple and amazing..

abdullahalhuzaifi
Автор

watching his videos from Saudi Arab great job "Harry Bhai"

shahwy
Автор

let a=prompt("enter 1st number");
let b=prompt("enter 2nd number");
if(a>b){
alert("a is greater than b ");
}
else if (a<b){
alert("a is smaller than b");
}
else{
alert("a is equal to b");
}

shreyanshjindal
Автор

function checkmaxno(a, b, c) {
if (a>b&&a>c) {
console.log("A has max value");
}
else if (b>c&&b>a) {
console.log("B has max value");
} else {
console.log("C has highest value")
}
}
checkmaxno(8, 10, 5);

Artisticme_MBJ
Автор

Quiz Done Harry Bhai !! Practice ke liye aise hi questions dete raha karo...

function min(a, b){
if(a<b){
console.log(a +" is minimum");
}
else{
console.log(b +" is minimum");
}
}
min(23, 43);

function max(a, b){
if(a>b){
console.log(a +" is maximun");
}
else{
console.log(b +" is maximun");
}
}
max(23, 43);

function greater(a, b){
if(a>b){
console.log(a + " is greater than " + b);
}
else{
console.log(b + " is greater than " + a);
}
}
greater(48765, 3456);

function smaller(a, b){
if(a<b){
console.log(a + " is smaller than " + b);
}
else{
console.log(b + " is smaller than " + a);
}
}
smaller(48765, 3456);

mayanksoni
Автор

function max(a, b) {
if (a>b){
console.log(a+' is greater');
}
else if(a==b){
console.log('Both are equal');
}
else{
console.log(b+' is greater');
}
}

max(9, 8); //Sample case

PrinceKumar-efiy
Автор

function comp(a, b){
if (a>b){
console.log(`${a} is greater then ${b}`);
}
else{
console.log(`${b} is greater then ${a}`);
}
}

chintamani
Автор

//Function for finding maximum between two numbers
function max(a, b)
{
if (a>b)
return a;
else
return b;
}
//Function for finding manimum between two numbers
function min(a, b)
{
if (a<b)
return a;
else
return b;
}

ayanavadas
Автор

Thank you Harry vai, you are the Best

shawanhossain
Автор

sir, when i declared let variable with same name in funtion, argument list and outside the function. it was giving me error. ??

HarshitKumar-vcjj
Автор

let num1 = prompt("enter the first number: ")
let num2 = prompt("enter the second number: ")
function findout(num1, num2) {
if (num1 > num2) {
return num1 + " is greater than " + num2
}
else if (num1 == num2) {
return num1 + " is equal to " + num2
}
else {
return num2 + " is greater than " + num1
}

}
findout(num1, num2)

ri
Автор

<script>
function comparison(a, b) {
if (a<b) {
return("b is greater than a");
}
else if ( a = b) {
return( " both are equal");
}
else if ( a>b ) {
return( " a is greater than b");
}


}
let a=1;
let b=1;


console.log(comparison(a, b))
</script>
//bro thanks

n_s_official_advanced_