// let
// var
//const
//datatype
//number
//String
//Bool
//double
//array
//function
//obj
//null
// var firstName = "bilal"
// console.log(firstName)
// var firstName = 'Ali'
// console.log(firstName)
// firstName = -10
// console.log(firstName)
// firstName = true
// firstName = false
// firstName = -10.2292382
// let firstName1 = "bilal"
// console.log(firstName1)
// let firstName1 = 'Ali'
// console.log(firstName1)
// firstName1 = -10
// console.log(firstName1)
// firstName1 = true
// firstName1 = false
// firstName1 = -10.2292382
// const value = 10
// console.log(value)
// value = 20
//scope of variables
let a = 20, b = 30
function sum() {
let a = 40, b = 60
console.log(a + b)
}
sum()
console.log(a)
Comments
Post a Comment