How works Primitives Values?
Primitive Values include, among other things, numbers and strings. Using console.log(), open your browser’s console and print the following primitive values:
There is one thing that all primitive values have in common. Nothing I can do in my code would have any effect on them.
What are Objects and Functions?
Function: Basically, a function is a “subprogram” that can be called by code that is external to the function. A function like a program is made up of a series of statements called the function body. A function may be given values and the function will return a value.
Try and Catch how it will work?
The event queue’s function is to send new functions to the track for processing. It always keeps the queue data structure to keep the correct sequence for all current operations. After completing one execution, the event loop continuously checks to see if the stack is empty. If it is empty, new functions from the event queue are added.
What about Caching ?
Caching is the process of storing data in a common storage location for a set period so that it can be called and collected quickly when needed. This caching method also reduces the cost of data retrieval from the database, making the application run faster. We now have client and server sites in a web application. Both use different kinds of caching systems. That has client caching and server caching.
What are Cross browsing testing and its purpose?
Cross browsing testing is testing that provides the capability of multiple browsers to access any kind of in one application. cross browsing testing follows some steps:
i. Initial planning: First and foremost, you must plan how your website will function, how it will look, who will be your audience, and what browser will be the most commonly used for the website.
ii. Development: Based on your plan, you can now create a separate part of your overall work and design how the work can be done with small, simple modules, and then develop the modules.
iii. Testing: After developing the system, you must now test it. You must test whether or not all of the functionality is operating smoothly, and whether or not the browser required to browse your site is operational. During this phase, you must identify any bugs in your system.
iv. Fixes: After locating the bugs, you must resolve the issue for your system to function properly. You must figure out where and why the bugs are appearing and then find a solution for them.
Default Parameter Values with functions?
we can see a parameterized function, but the parameter can have a default value or can be undefined.
As we can see, the default value of y is set to 3, so if you do not provide a value for y, it will work with its default value and return the result.
What is Block Binding?
The cost of data is the cost incurred for each operation or function. It can originate from any system factor. As a result, it is critical to determine who will bear the cost. In general, the user should bear the cost, but this may not always be possible because the cost can be very high. As a result, the cache is used to reduce the time required for data access and, as a result, the cost of data.