Posts

Showing posts from February, 2023

This keybord/variable

 A special variable is created for every execution context (every function). Takes the value of (points to) the "Owner " of the function in which this keyword is used. This is not static. It depends on how the function is called, and its value is only assigned when the function is actually called. METHOD This = <Object that is calling the method> SIMPLE FUNCTION CALL  This =  undefined ARROW FUNCTIONS This = <this of surrounding function (lexical this)> EVENT LISTENER This = <DOM element that the handler is attached to> PRIMITIVES VS OBJECTS (PRIMITIVE VS REFERENCE TYPES)

What is Js In a high level

Image
 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...

HTML & CSS ATRIBUTES

 

Complete theory Javascript from zero to expert

Image
 Ja vascript is a high-level object-oriented multi-paradigm programming language what do we actually use for  HTML  CSS  Javascript hide paragraph  Interactive effects allow Dynamic effects and web applications in the browser React Angular Vajue Based on javascript Front-end  Node js Back-end applications Objects and primitives  VALUE  OBJECT  let me ={ name:'Jonas' }; Or PRIMITIVE  let firstName = 'Jonas'; let age = 30; There are 7 primitive data types 1 NUMBER floating point numbers used for decimals and integers let age = 23; 2 STRING sequence of characters used for text let firstName = 'Jonas'; 3 BOOLEAN Logical type that can only be true or false used for taking decisions let fullAge = true; 4 UNDEFINED: Value has taken by a variable that is not yet defined ('empty value) let children; 5 NULL also means an empty value 6 symbol (ES2015) Value Three forms to call variables in js  Let: could change in the future  Const: can't...