Data type, try-catch

Data types

Mainly 3 types: Primitive, Object, Function

Types of Primitive value are:

  1. Undefine
  2. Null
  3. Boolean
  4. Number
  5. Strings
  6. Symbols
  7. BigInts

Coding Style

No one likes reading long line code.

Try Catch:

First, the code in try {...} is executed.

If there were no errors, then catch(err) is ignored: the execution reaches the end of try and goes on, skipping catch.

If an error occurs, then the try execution is stopped, and control flows to the beginning of catch(err). The err variable (we can use any name for it) will contain an error object with details about what happened.

Balancing Client And Server Caching:

Client and Server can be caching huge of data when calling an API. But performance slows down.

So, We should balance client and server data caching. Then the application can catch the most useable data. and output us best performence.

Cross-browser testing

As a web developer, it is your responsibility to make sure that not only do your projects work, but they work for all your users, no matter what browser, device, or additional assistive tools they are using.