JAVASCRIPT
JAVASCRIPT
printing ke lie-
console.log
in VS CODE
when u write the code then run it and then in terminal write --PS D:\destop\java>
node tut.js then the output will be shown
datattype
var-- used for chanign variable
var---variablename;--datatype is undefined
hoisting-- var mei agar chize code ke neeche declare kare tab bhi usse upar agar
use kare toh error nhi dikahyega
const--- age mei agar ek baar value de de toh wahi rahega...cant change
and value dena hee hoga otherwise syntax error aayega..we have to intiiatiles
comment- //
multiline mei /* */
let age=;
let age=null;
terminal mei node likhenge toh joh inspect mei kar rhe thee woh idhaar bhi kar
sakte..par web pe better h
let use karne se datatype fix ho jayega..fir baad mei agar operation karna hoga toh
wahi datatype mei hee karna hoga
array.foreach(
el=>el*2)
CAMELCASE
Example isOnline
node is engine
and google is os
alert ke dialogue block ke liye write
alert("good")
prompt se dialogue box banta h jisme hum value likh sakte par usme ek function
likhna hoga jisse hum value access kar sakte
document object model -modcmanipulation--GOAL
new funtion
console.log(fruits.include('apple'))