const request = require('request');
doAsyncMath('2+15', function(result) {
doAsyncMath(`${result}*3`, function(result) {
doAsyncMath(`${result}*10`, console.log);
Throughout the entirety of the interview:
- Be friendly
- Be talking. Especially when you are not sure what to do next, or, are thinking about what you will do, you need to be sharing these thoughts with your interviewer
- Be using eye contact to check in with your interviewer
- Be honest (about what you've done, what you don't know)
- Be enthusiastic about a challenge
- Be a delightful coworker
There are situations in OOP where we may wish to protect access to instance properties.
In the following example we will make a bank account constructor in the hopes that by including a pin, will be protected.
const BankAccount = function(initialBalance, pin) {
this.balance = initialBalance;
this.pin = pin;
}
-
Locate the path to the interpreter for the language you are writing in with the
which
command.which node which python which bash which ruby
-
Add that path as an interpreter directive (using
#!
) on the first line of your script. For example if you want to write a node script andwhich node
returned/usr/local/bin/node
, the first line of your script should be:
(I'm not familiar with installation onto a Linux machine. Please follow the instructions on the Docker Installation page.)
[ ] If you're using OS X go directly to the boot2docker installation page, download the latest Boot2Docker pkg
and install it on your laptop. This will install both Docker and Boot2Docker. The Docker installations docs have the following to say about Boot2Docker, which solves the issue for OS X users that Docker must be run on a host system with a Linux kernel.
Because the Docker daemon uses Linux-specific kernel features, you can't run Docker natively in OS X. Instead, you must install the Boot2Docker application. The application includes a VirtualBox Virtual Machine (VM), Docker itself, and the Boot2Docker management tool.