Lecture 1 - Intro to JavaScript.pdf - Lecture 1 Intro to JavaScript CS-546 \u2013 WEB PROGRAMMING \u00a92018 STEVENS INSTITUTE OF TECHNOLOGY Introducing

Lecture 1 - Intro to JavaScript.pdf - Lecture 1 Intro to...

This preview shows page 1 - 6 out of 17 pages.

Lecture 1: Intro to JavaScript CS-546 – WEB PROGRAMMING ©2018 STEVENS INSTITUTE OF TECHNOLOGY
Image of page 1
Introducing Node.js ©2018 STEVENS INSTITUTE OF TECHNOLOGY
Image of page 2
What is Node.js? There are many languages and environments that you can develop web applications in, each with great strengths and great weaknesses. Node.js is a JavaScript runtime environment that runs on a computer, rather than in a browser. In simple terms, it’s JavaScript being run as a script on a computer. You can run these scripts from the command line. Node.js often comes bundled with npm, the Node.js Package Manager, which allows you to add dependencies In node, you use the require function to require other modules (from packages, or from other files) ©2018 STEVENS INSTITUTE OF TECHNOLOGY
Image of page 3
Why are we using Node.js? Node.js has been chosen for this course for a number of reasons: It is particularly easy to setup For the sake of learning, it will be much easier on you to learn one programming language for both the frontend and backend rather than to learn one programming language for the frontend and another on the backend. There are many node packages available for you to use Node.js promotes extremely modular code, making it easy to organize your code Node.js scripts can be run via the command line, making it very easy to test your code without building out your actual web applications, but rather making and running other scripts. You can then phase your code into a web application in a more natural way. ©2018 STEVENS INSTITUTE OF TECHNOLOGY
Image of page 4
What is a module? Generally, a module is an individual unit that can be plugged into another system or codebase with relative ease. Modules do not have to be related, allowing you to write a system that allows many different things to interact with each other by writing code that glues them all together.
Image of page 5
Image of page 6

You've reached the end of your free preview.

Want to read all 17 pages?

  • Spring '16
  • Stevens Institute of Technology

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture