Conditionals and Functions in javascript || javascript course || codeandman

Hey guys how are you all today in this post I am going to give you the source code of my video called conditionals and functions in javascript so let's begin with this post:-

here's the complete source code and the video:-
// CONDITIONALS IN JAVASCRIPT

if(1<1){
    console.log("Hello world 1")
}
else if(2!=2){
    console.log("hello worldnot2")
}
else{
console.log("nothing was equal")
}
// ----------------------------------------------------
// FUNCTIONS


// Methods of defining a function
// first method:-
function printer(a){
    console.log(a)
}
// second method:-(this is called fat arrow function)
let fat_arrow_printer = (a) =>{
    console.log(a+" 3")
}

// Calling a Function
printer("I want to print this statement");
fat_arrow_printer("dhoom");

I hope that you liked this post.
Like, Share and Subscribe to this video and the channel.
Thank You.

Comments

Popular posts from this blog

Top 3 Websites to get copyright free images in 2024 for free

Codes Post - Code And Man

Creating Landing Page Website - playlist - codeandman (source code)