A function has access to the variable environment (VE) of excecution context it was created Closure : VE attached to the function, exactly as it was at the time and place the function was created A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). In other words, a closure gives you access to an outer function's scope from an inner function. In JavaScript, closures are created every time a function is created, at function creation time. A closure is the closed-over variable environment of the execution context in which a function wascreated, even after that execution context is gone. A closure gives a function access to all the variables of its parent function , even after that parent function has returned. The function keeps a reference to its outer scope, which preserves the scope chain throught time. A closure makes sure that a function doesn't loose connection to variable that...
JavaScript is a high-level, prototype-based object-oriented, multiparadigm interpreted or just-in-time compiled dynamic, single-threaded garbage-collected programming language with first-class-functions clog it up just in time compiled language Our computer only understands 0s and 1s Human readable Js convert to the machine to JS Multi-paradigm Program An approach and mindset of structuring code, which will direct your coding style and technique 1. Procedural Programming 2.Oriented programming 3. Structure Arrays are in Prototypal inheritance Js is a language with first-class functions , functions are simply treated as variables . we can pass them into other functions, and return them from functions Javascript is a Dynamic language No data type definitions Types become known at runtimes The data type of the variable is automatically changed. Concurrency model How the javascript engine handles multiple tasks happening at the sa...
Lists & website structure with semantic elements create lists, elements, and semantic logic structures for sections Containers, cascading inheritance & Specificity Other concepts into cascading The box model Content, padding, border, and margin into play Using the live server Extensions The live server opens your code and automatically simulates your website The development server & The local Website Address Local development web server via the "Live Server" Extension for code. What is a development server? it's a local development web server because it's a web server software that serves the local websites, on our machine its not expose our machine or the website to the internet This "web server software" (i.e. the "Live Server" extension in this case) is a software that does actually listen for incoming HTTP requests and send back appropriate responses (that contain the HTML code for example). Remembe...
Comments
Post a Comment