The || (OR) operator The || (OR) operator will return the right operand if the left operand is falsy (false, 0, empty string, null, undefined, NaN). When to use? Use || when you want to provide a fallback for any "falsy" value. ?? (Nullish Coalescing) operator The ?? (Nullish Coalescing) operator will only return the right operand if the left operand is null or undefined. When to use? Use ?? when you want to provide a default value for null or undefined, but consider 0 and empty strings to be valid values. Example
The IP address for localhost is traditionally 127.0.0.1, so you’d expect http://localhost:9999 and http://127.0.0.1:9999 to be the same origin. BUT. The origin comparison only compares the string values of the scheme, host, and port, and knows nothing about what host an IP address maps to. In my example, “localhost” and “127.0.0.1” are different strings, and therefore the request isn’t a same-origin request.
Over 7000 cryptocurrencies are in existence as of today - which one will survive? Let's make an attempt to weed out some noise from the crypto landscape so that we can focus on the signals. Firstly, Metcalfe's Law states that the value of a network is proportional to the square of the number of its users. This will be a good indicator to predict less erroneously the one crypto that will rule out the rest. Scarcity is another metric. Scarcity leads to novelty. Humans love to possess novel things. So cryptos leaning to scarcity in the near or far future could be a way to go. The metric to go by, in this case, would be Maximum Supply . It is the best approximation of the maximum amount of coins that will ever exist in the lifetime of the cryptocurrency. The total number of BTC will never exceed 21 million. The hard cap is a limit that is written in Bitcoin's source code and enforced by network nodes.