Skip to main content

· 4 min read
Sivabharathy
  • 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

· 5 min read
Sivabharathy

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.

· 2 min read
Sivabharathy

HTTP response status codes indicate whether a specific HTTP request has been successfully completed. Responses are grouped in five classes:

  • Informational responses (1XX)
  • Successful responses (2XX)
  • Redirections (3XX)
  • Client errors (4XX)
  • Server errors (5XX)

· 5 min read
Sivabharathy

What is a data structure ?

In software engineering, a data structure is an organisation to coordinate, oversee and store data in a way that permits proficient access and change.

banner image All the more exactly, a data structure is an assortment of data esteems, the connections among them, and the capabilities or tasks that can be applied to that data.

These definitions could sound a piece theoretical from the start, yet consider it. In the event that you've been coding for a brief period, you probably utilised data structures previously.