Reading One Note Outline. - liz-kavalski-401-advanced-javascript/seattle-javascript-401n13 GitHub Wiki

eloquent js - node (chapter 20)

  • asynchronous programming- allows to send and received data from and to multiply devices.
  • JavaScript is more friendly to Node due to not having a built-in input and output function.
  • With Node a person can run JavaScript files on the command line.
    • In the the terminal node only sees the logged value.
  • if there is no file while running node then a person can just type JS into the command line.
  • process= a various ways to inspect and manipulate a current program.
  • exit= a method that ends the process and can be given an exit status code(if in a shell if the code was sucussful or if there was an error.
  • Don't get how the process.argv work?
  • In Node a person need to ask the model if they want a built-in functionality.
    • Which can be installed using NPM or a download of a package from it library.
    • show in a json file along with which verison it is.
  • readfile = calls a file and callback the content of the file.
    • need to use utf8 or buffer for text because it will send back bindary code back.
  • readdir= returns files in directory in an array/string.
  • Another model to the HTTP which runs on HTTP server and make HTTP requests
  • What are writable stream used for?
  • HTTP dose have methods which are GET, PUT and DELETE (read,write, and delete.)

About Node js.

  • No blocks and/or threads
  • The event loop is hidden from the user
  • Use HTTP

Just Another Guide to ES6

  • 'let' is a block scope
  • Some similar concepts to C# language.
  • Can create default values if none are provided.
  • Destructured assignment is used to match value instead of position.
  • what is a iterables?
  • Has a lot of nice built-in function.

A Gentle Intro to TDD in JS

  • TDD =Test Driven Development
    • Help make sure the code works
  • It useful because it force one to think, debugged easier, and can be fun ( to some people).

Building a JavaScript and Node project

  • It a little confusing to me but a sounds like how to have node, javascript and travis work together on a project.