Skip to main content

Posts

Showing posts from August, 2020

Why space bar key is so big in Keyboards?

Why SPACE BAR key is so big? The space bar key is so big compared to other key because  ✓ The fast typing is done by looking on the screen without seeing the keyboard. It makes the key easier to identify the key.  ✓And also, long key indicates the 'space' Which is the actual use of that button. Thank you, Come Back to Learn More About Tech Stuff with Tech Bird Have A Nice Day !   :)  

Node.js #3- Operators

Operators An operator performs some operation on single or multiple operands (data value) and produces a result. For example 1 + 2, where + sign is an operator and 1 is left operand and 2 is right operand. + operator adds two numeric values and produces a result which is 3 in this case.   Syntax: < Left operand > operator < right operand >   < Left operand > operator Example 1:  Arithmetic Operators Arithmetic operators are used to perform mathematical operations between numeric operands. Source code: var x = 10, y = 10 console.log("Addition Operator",x + y) console.log("Subtraction Operator",x - y) console.log("Multiplication Operator",x * y) console.log("Division Operator",x / y) console.log("Modulus Operator",x % y) console.log("Increment Operator",x ++ ) console.log("Decrement Operator",y -- )   Output: Addition Operator 20 Subtraction Operator 0 Mult

Node.js #2- Variables and Declarations

Variables and Declarations What is Variable? Variable are the names which hold the data.   Noteworthy: ·           Variable stores a single data value that can be changed later. ·           Variables can be defined using  var  keyword. Variables defined without  var  keyword become global variables. ·           Variables must be initialized before using. ·           Multiple variables can be defined in a single line. e.g.  var  one = 1, two = 2, three = "three"; ·           Variables in JavaScript are loosely-typed variables. It can store value of any data type throughout its life time. Syntax: var  < variable-name >; var  < variable-name > = < value >; Source code: var  a=10 console.log(a) Output : 10   Thank you, Come Back to Learn More About Tech Stuff with Tech Bird Have A Nice Day !   :) 

Node.js #1-A Way to start With Node.js

Let’s Start with the Hello World in Node JS   How to Install Node.js: ·           Direct to the Link -  Download Node.js ·           Download the Latest version and Install it in the System.  After Installing the Node.js We start directly   ·           Open Notepad or any Code Editor tools of your choice. ·           Here am using Notepad++. ·           Let’s start to write code to print hello world in the console. Type the below line in the code editor. console.log (‘Hello World..!’) ·           Save the file with . js  extension o     Example: filename.js ·           Now open the command prompt and route/direct to the file stored directory. ·           In CMD type > to run the file and see the output o     Type >  node filename.js  and press enter. o    You would See the Output Screen which will print the Hello World. ·           Viola! You completed the hello world program in  NodeJS . ·           Yes, that’s it. Simple isn’t it? To Get quick g