PinnedJavaScript Variable DeclarationVariable What is Variable ? a]anything that can store value or some data b] as name indicates it can vary c]it is the location where data is stored example: factorial = 45,v = "ram" We can not use number as initial of variable name We can n...Feb 8, 2022·1 min read·143
Function in JavaScriptWhy we use function? The main objective of function is to avoid the repeatation of code. Example: If we have to perform different operations on two variables we write code as follows: let a=25 let b=5 console.log(a + b) console.log(a - b) console.log...Feb 10, 2022·3 min read·171