Skip to main content

lorem ipsum

Comments

Popular posts from this blog

Basics of computers

  Computer is a device that transforms data into meaningful information. It processes the input according to the set of instructions provided to it by the user and gives the desired output quickly. A Computer can perform the following set of functions: Accept data Store data Process data as desired Retrieve the stored data as and when required Print the result in desired format. Data and Information ​ It is the term used for raw facts and figures fed into the computer and along with the set of instructions which enables the computer to convert this raw data into the refined and useful information. Information: Data represented in useful and meaningful form is information. Classification of Computers: Computers can be classified based on the technology being used and the way they are designed to perform the various tasks. Computers can be categorized into Digital, Analog and Hybrid based on their design and working: Digital Computers ​ These are the modern computers which are capable of

Nodejs Best practices

  Prefer const over let. Ditch the var ​ Using const means that once a variable is assigned, it cannot be reassigned. Preferring const will help you to not be tempted to use the same variable for different uses, and make your code clearer. If a variable needs to be reassigned, in a for loop, for example, use let to declare it. Another important aspect of let is that a variable declared using it is only available in the block scope in which it was defined. var is function scoped, not block-scoped, and shouldn't be used in ES6 now that you have const and let at your disposal Use proper naming conventions for variables, constants, functions and classes ​ Use lowerCamelCase when naming constants, variables and functions, UpperCamelCase (capital first letter as well) when naming classes and UPPER_SNAKE_CASE when naming global or static variables. This will help you to easily distinguish between plain variables, functions, classes that require instantiation and variables declared at glob