Daniel Escobedo

Author

Daniel Escobedo

I'm a JavaScript developer who loves to code. I'm always reading and learning new technologies and tools to better my skills and workflow.

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