Tag Archives: TechSolution

What is a web server?

A Web server is a program that uses Hypertext Transfer Protocol(HTTP) to serve the files to users, in response to their requests which are forwarded by HTTP clients on their machine.

The requests are sent by client programs at users end. The client may be a web browser client like (Mozilla Firefox, Google Chrome, Opera, Microsoft Edge or Apple’s Safari) or it can be an Api development and testing programs like (SoapUI, Katalon studio or Postman)

Some of the popular and most widely used web server tools are Nginx, Apache and Microsoft IIS.

Advertisements

Can I store multiple values in a single variable in Ruby?

Yes, you can. Ruby offers a data structure called Array using which you can store multiple values in a single element. Let’s look at an example.

Variable with single assigned value:

user_limit = 250

Variable with multiple assigned values:

users = [‘john’, ‘kevin’, ‘jay’, ‘navin’]

This is an array, and you can store more than one value in an array like this.

How can we remove a property from a JavaScript object?

Objects are one of the essential building blocks of JavaScript Language. You simply can’t have an application that does not make use of Javascript Objects.

We will checkout how to remove a property from a JavaScript object that you already have defined.

Consider you have defined an Object employee as: 

var employee = {

    “name”: “John Doe”,

    “age”: 25,

    “salary”: 35000,

    “department”: “sales”

};

You want to remove property named “department” from employee object. You can do this with delete statement as:

delete employee.department;