Twilio Quest
- https://www.twilio.com/quest
- TwilioQuest is an educational video game designed to teach a new generation of developers how to change the world with code.
- From learning how to use your terminal, to coding in Python, JavaScript, and contributing to Open Source projects, TwilioQuest will help you develop practical engineering skills.
Process.argv
- Get input string from the console.
- Output is string array.
String
localCompare
- Get compared result by number(-1, 0, 1) with specific language and options.
Type Casting
- string => int, float, double … :
Number
- int, float, double … => string :
String
Number
- In javascript, you don’t need to separate Number Type.
- int, float, double, log and etc. are all
Number
.
Array
map
: mapping result from array.
reduce
: add result from the array. You can also set initial value.
slice
: slice array with specific indexes.
filter
: filter array with specific function.
Class
Class
can reduce code and make it more reuseable.
Constructor
constructor
can initialize members and methods.
Function
- When you create function in class, you shouldn’t type
function
.