HSHinanshi Sutharinhinanshi.hashnode.dev·Nov 19, 2022 · 6 min readHandling Events in JavaScriptBut first, back to basics ! What are events and event handlers ? An event is a signal that something has happened. Often, when events happen, you may want to do something. There are many events that JavaScript provides to interact with the DOM. And ...00
HSHinanshi Sutharinhinanshi.hashnode.dev·Nov 2, 2022 · 4 min readShallow copy vs Deep copy in JavaScriptAs we differentiate between variables in JavaScript as primitive and non-primitive, similarly when we copy those variables we get a deep copy and a shallow copy respectively. In general, when you try to copy an existing thing, we expect that the ori...00