NodeJs and advanced js

NodeJs and advanced js

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

modules

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (10)

Section 1

(10 cards)

modules

Front

a reusable block of code whose existence does not accidentally impact other code. *each file is treated as a seperate module in node.

Back

prototypal inheritance

Front

javascripts way of implementing inheritance.

Back

primitive value

Front

a type of data that represents a single value. (like a number or a string.) In other words not an object.

Back

2 ways of accessing object properties

Front

1) dot syntax: person.greet(); 2) bracket syntax: person['greet'];

Back

module.exports

Front

what the require function returns

Back

Object literal

Front

name/value pairs seperated by commas and surrounded by curly braces

Back

commonjs modules

Front

an agreed upon standard for how code modules should be structured

Back

revealing module pattern

Front

exposing only the properties and methods you want via a returned object -very common & clean way to structure & protect code within modules.

Back

require

Front

a function that you pass a path to

Back

By reference and by value

Front

Back