Daniel Escobedo

From the Command Line to the Text Editor - Personal Notes in Software Engineering

Lexical Scope and Closures

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...

Linux SFTP Command

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...

Mastodon