Skip to main content

Posts

Showing posts with the label Javascript

Node Js #1

  NODE JS: Beginning #1 Here are the details for the code we used: var means: Any Variable  Console.Log : print something # 4 types of Compilers:  ⦁ Online Compiler ⦁ Vs Code ⦁ Browser Run ⦁ Terminal Here is the simple program to run in java: Var a = 5; Var b = 5; Var ans = a*b; Console.log(ans); Output:  25 ----------------------------------------------------- #Basics Of JS Will Be Using In Node JS: Variable Objects JSON Console Array Random If Else Loop Functions Prompt ___________________________________________________ We can use "let" instead of using "var" keyword to define variables Keyword : Const -> A const keyword is used to create datatypes constant. i.e.(That Cannot Be Changed)! syntax: const name = 'Ram'; and if we change it to Shyam  like:  name = 'Shyam' Error: It gives an error that constant variable cannpt be changed; If you want to know what types of data is stored in variable you can see .  Let's see example for tha...