Data type, try-catch
Data types
Mainly 3 types: Primitive, Object, Function
Types of Primitive value are:
- Undefine
- Null
- Boolean
- Number
- Strings
- Symbols
- 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 oftry
and goes on, skippingcatch
.If an error occurs, then the
try
execution is stopped, and control flows to the beginning ofcatch(err)
. Theerr
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.