PMPranav Mathurinpranavmathur.hashnode.dev·Mar 30, 2023 · 1 min readFlow of code execution in JavaScriptJavaScript is a single-threaded 'interpreted' language, where only one command executes at a time. It has a Synchronous model of execution, where each line is executed line by line, top to bottom. As soon as you start executing your code, there are t...00
PMPranav Mathurinpranavmathur.hashnode.dev·Mar 29, 2023 · 3 min readJS interview cheat sheetScope Scope determines the accessibility (visibility) of variables. Variables declared within a JavaScript function, become LOCAL to the function whereas variables declared outside a function, become GLOBAL ie. all scripts and functions on a web page...00
PMPranav Mathurinpranavmathur.hashnode.dev·Mar 27, 2023 · 2 min readJavaScript FunctionsA JavaScript function is a block of "reusable" code designed to perform a particular task, it is executed when "something" invokes it (calls it). A JavaScript function is defined with the function keyword, followed by the name and parentheses (). The...00
PMPranav Mathurinpranavmathur.hashnode.dev·Mar 26, 2023 · 1 min readJavaScript Objects and their methodsObjects in JavaScript are non-primitive datatypes ie. they can contain many properties written as name: value pairs. A property's value can be a function, in which case the property is known as a method. Objects are mutable, meaning their contents ca...00
PMPranav Mathurinpranavmathur.hashnode.dev·Mar 25, 2023 · 1 min readMedia QueriesMedia query uses the @media rule to include a block of CSS properties only if a certain condition is true. With the help of media queries, we can add breakpoints to our webpage and make it responsive. Media queries also help change the layout of a pa...00