GithubHelp home page GithubHelp logo

nodeprep's Introduction

OVERVIEW

This is a GitHub Repo to help learn and understand Node.js. Whether it's your first time working with Node, or to serve as a refresher. As I personally have only worked with Node.js on a tutorial project, this was created in the spirit of learning. --AW 12/16/2020

FOR ANY READERS... I HIGHLY RECOMMEND THE FOLLOWING COURSE(S)

KEY POINTS

JavaScript is executed by adding script tags to an HTML Document whereas with Node, JS is executing by running the NODE CLI FROM THE TERMINAL.

There is no DOM, and therefore no access to any Window related objects.

Each file within Node is its own world, whereas with regular JavaScript, code can reference variables in other files freely.

Libraries in Node are included by using the Node Package Manager whereas for browser based JavaScript, you can use script tags etc.

type node to enter the Node repl and explore!

DEBUGGING IN NODE

  • node inspect index.js
    this starts a debugger in the CLI and pauses execution whenever debugger is hit

    c continues execution, n runs the next line of code, s steps into a function, o steps out of current function, repl starts an execution environment where we can test code

  • node --inspect index.js
    starts a debugger instance and pauses execution when the debugger statement is hit... can access the debugger at 'chrome://inspect'

  • node --inspect-brk index.js starts a debugger instance and WAITS to execute until a debugger is connected... also access it at 'chrome://inspect'

BONUS

which node tells you the path of node

nodeprep's People

Contributors

adamweissman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.