Ramin Ahmadi | Personal website of Ramin Ahmadi

Archive

Difference between null and undefined in JavaScript

As a front end developer you might have checked value of variables for null value or undefined. For example asking for a non-existing property of an object. let cars = {};console.log(cars.BMW); //returns undefine now a simple if statement will tell you if BMW exists in cars variable. Here is how to check ...

What is HTTP method OPTIONS?

The HTTP OPTIONS method is a type of HTTP call that explains what are the options for a target resource such as API endpoint. a client can use target resource’s URL to use OPTIONS method or use * to target the entire server. public GetOtaAdaptor(): Promise<Model.OtaAdapter> { ...