Javascript Node Js basic to Advance
1.08K subscribers
4 photos
1 video
5 files
39 links
Javascript Node Js group

@LogicB_Support
@BCA_MCA_BTECH
Download Telegram
// #1 for show print any value

console.log("Hello, world!");

// first js program @JsCode0
1
// #2 declaration of variables

let a = 1 // block scoped variable

var b = 2 // accessible from other blocks{}

const c = 3 // constant variable
// it insures that program will not assign any value to it again

console.log("var1: " + a);

console.log("var2: " + b);

console.log("var3: " + c);

// @JsCode0
👍3
// #3 Taking input in node js

const readline = require('readline').createInterface({
input: process.stdin,
output: process.stdout
});

readline.question("Enter a number: ", (num) => {
console.log("You entered: " + num);
});

// @jsCode0
1