JavaScript Variables

Understanding of JavaScript variables is very important. In this blog, we will understand JavaScript variable declaration and definition, types of JavaScript variables, variable hoisting, variable declaration and Importance of variable declaration. JavaScript variable declaration and definition: In JavaScript a variable is declared using the keyword 'var'. We say a variable is defined when the variable is…

Advertisements

Rails 5 – Action Cable – Explained with a basic chat app

http is a half duplex protocol whereas websocket is a full duplex protocol. Generally to get any data that gets added to the Rails Database will require a refresh to fetch the newly added data. But Action cable enables the browser to broadcast the data without the need of a refresh. 3 main steps in…

Rails Fragment Caching Part – II

Caching Dependencies: In order to correctly invalidate the cache, we need to define the caching dependencies properly. Rails is clever enough to understand these dependencies. But few cases it has to be handled differently to invalidate the cache when an object / template changes. 1.1 Implicit Caching: Template dependencies are handled by calls to render.…