Untitled
user_7147158
plain_text
a year ago
1.9 kB
16
Indexable
// // simple function
// function functionNaam(){
// // console.log("simple function")
// }
// functionNaam()
// //
// const arrowfunctionkanaam = () => {
// // console.log("arrow function")
// }
// arrowfunctionkanaam();
// // this keyword vaala difference
// // const objectkanaam = {
// // name :"abcd",
// // city:"lucknow",
// // state:'up',
// // getThis: function () {
// // console.log(this)
// // }
// // }
// // const objectkanaam2 = {
// // name :"abcd",
// // city:"lucknow",
// // state:'up',
// // getThis: () =>{
// // console.log(this)
// // }
// // }
// // console.log(objectkanaam2)
// // (function(){
// // console.log("bina naam vaala")
// // })
// // variables
// // let - same naam se , update kr skte hain , phle use nhi kar skte
// // const - same naam se nhi bna sakte , update nhi kr skte , phle use bhi nhi kar skte
// // var kuch bhi kar skte hain
// // data types -
// // String ""
// // Number 233
// // Boolean true
// // Object {}
// // undefined
// // null
// // BigInt bahut bda number
// // Symbol unique key ke liye
// primitive and non primitive
// primitive - call by value
// Number
// String
// Boolean
// undefined
// null
// non-print
// array , Object , linked list , stack , quesue
// primitive - vo call by value hote hain
// non - primitive - call by rference hotw hain
// let a = "ayushi";
// function kuch(djdj){
// console.log(djdj)
// }
// kuch(a);
// let a ="dnejdnejdnejdnejd"
// function hello(abcd){
// console.log(abcd)
// }
// hello(a)
let arr = [1212];
function check (x) {
console.log(x)
x = []
console.log(x)
}
console.log("1")
function hello1(){
console.log("first")
}
console.log("2")
check(arr);
console.log("3")
// console.log(arr)
Editor is loading...
Leave a Comment