#Js-Practice basic js question
1 Js is lightweithed dyanamically tyaped language that mkaes a web pages interative js is single threaated language but we use event loop to handle a asynchrose work
2 ///java scrpt is a primsrlly exticuted using using jit(just in time) compilation in mordern engiens //browser -> v8 is js engine //spider monkey -> Js core Jit //Compilation ->Machine -> Execution // js is interpeited
3 js is single threaed beacause it has only one main call satck so it execute a piece of js code one task at a time
4 aync is execute the script as soon as download while differ execute it after html parsing is complited but differ follw order
5 js is case sensitive name Name NAME there are three diff identifire when you are dclering variable use camal case and function and pacal case for classes function must be lowercase uppercase and lowercase trated diff
/// variable scope and hoisting ///