To best understand the for..in and the for...of statements, we need to talk about enumerable properties and iterable objects from a high level.
Enumerable Properties and for...in Statements
Object properties are almost always seen as key/value pairs, but these properties also...
The scope model that JavaScript employs is called Lexical Scope. So what is it exactly?
A scope acts like a container in which your variables and functions are declared.
var name = 'Daniel';
function printName() {
console.log(name);
};
printName(); // Daniel
There are two scopes in this...
JSON Web Tokens are structured like this:
Header.Payload.Signature
Each of these three parts (separated by dots) are Base64 encoded. This means they are not encrypted and can be easily read by anyone just by decoding it.
Header
The first part of the token...
You can have redux-saga listen in on event sources other than the Redux Store. The default nature of redux-saga is pull based. We need to write a saga that is push based, so that the external event listener like an API can push updates to...
The most basic way to start an SFTP session in the command line is via:
sudo sftp server.hostname.com
Note: I am including sudo in these examples because at least in my experience, you usually need to prepend it in professional environments in order...