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
Post a Comment