In this article, we are going to explore property descriptors and how we can fetch these values from an object. The Object.getOwnPropertyDescriptor method returns an object that describes the specific property from the given object. A JavaScript object can be created in multiple ways that can be called by using the property descriptors from the object.SyntaxObject.getOwnPropertyDescriptor(obj, propThe property descriptor takes two parameters as inputs that are described below −obj − The object refers to the object name whose properties need to be described.prop − It defines the specific property from the object whose value needs to be returned.This method returns ... Read More
Space is an empty void. It is not totally vacant, but rather comprises of a vacuum containing a very low thickness of particles, overwhelmingly a plasma of hydrogen and helium. It also consists of neutrinos, cosmic and electromagnetic rays. One hydrogen per cubic meter is the density of space.There is nothing in between galaxies and the temperature literally reaches 2.7 K, which is −270.45 °C. In the galaxies, 90% of the mass is in an unknown form, called dark matter. It interacts with other matter through the gravitational but not electromagnetic force.Manned spaceflight is limited to the lower Earth orbit ... Read More
Not all South Africans are called Proteas; it's just their national cricket team which is called by that alternate name. Protea is the name of a flower that has pink and yellow petals and it is the national flower of South Africa. It's a tradition in certain cricket playing countries to be called by names of some of their national symbols.Take the case of the South African rugby team - they are called Springboks after the spectacular antelope from the wilderness of this country, which is among the fastest land animals on earth and is known to leap up to ... Read More
In this article, we will explore how to find the minimum and maximum values from an array without using the Math functions. Math functions including Math.min() and Math.max() returns the minimum and maximum values out of all the numbers passed in the array.ApproachWe are going to use the same functionality of the Math functions that can be implemented using a loop.This will iterate over the array elements using the for loop and will update the minimum and maximum element in a variable after comparing it with each element from the array.On finding the value greater than the max value we ... Read More
Most of us tend to forget new information as soon as we hear it. There are times when we write down stuff and still fail to recall it within 24 hours of first reading or hearing it. Now if we consider the part of taking notes in the correct way then maybe we can retain and retrieve every bit of information we receive.Taking effective notes is a very crucial skill. This skill can become your ladder of success. It is a very effective way of learning, absorbing and recalling concepts and ideas in meetings, involving in quiz and most importantly ... Read More
Encoding and decoding the URI and the URI components is required by the URL of any website to reach or redirect the user. It is a usual task in web development, and this is generally done while making a GET request to the API with the query params. The query params must also be encoded in the URL string, where the server will decode this. Many browsers automatically encode and decode the URL and the response string.E.g., A space " " is encoded as a + or %20.Encoding a URLThe conversion of the special characters can be done by using ... Read More
Low earth orbit (LEO) satellites systems orbit below 2000 km from the earth’s surface, i.e. below the lower Van Allen belt. They move at very high speeds and may not have any fixed space with respect to the earth.The following diagram depicts LEO satellites in their orbits.Features of LEO SatellitesA network of LEO satellites are needed for global coverage as their orbits are not geostationary.These satellites are not as powerful as the MEO and GEO satellites.Due to their high speeds, satellites move in and out of the earth station’s range from time to time. So, data is handed off from ... Read More
A beowulf cluster is formed using normal computers that are identical. These are arranged into a small local area network (LAN). There are programs that allow these computers to share processing among them.So beowulf clusters form a parallel processing unit using common personal computers.An image that displays the first beowulf cluster at Barcelona Supercomputing Center is as follows −Image Credit − By Vcarceler [CC BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0)], from Wikimedia CommonsFeatures of Beowulf ClustersSome important features of beowulf clusters are as follows −Beowulf clusters are formed using normal computers. There is no software that denoted a cluster as a beowulf cluster.A ... Read More
A radio button is an input type that takes input in form of the options. The user will select one value from multiple choices. Only one option can be selected out of many possible choices.In this article, we will explore how to disable a radio button and how to enable it back when required. We will see how radio buttons work internally and how can we disable them when requiredMostly radio buttons are shown to the user only in some cases as part of confirmation. When not required we can disable them so that the user does not choose an ... Read More
We can use the CSS media queries to check whether the website is opened inside a web browser or a mobile browser. This information can be fetched using the min-width and the max-width of the webpage.CSS media queries are only limited to styling the web pages but we can control the functionality of a website as per the user’s device by using the navigator properties in JavaScript.The Navigator returns a set of values that includes user browser, version, operating system, and many more.Syntaxnavigator.userAgentExampleIn the below example, we are going to use Navigator to fetch the user’s device details. This will ... Read More