Section 1

Preview this deck

Write content to file or overwrite content

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 (9)

Section 1

(9 cards)

Write content to file or overwrite content

Front

fs.writeFile("myFile.txt","content",function(err){...});

Back

What is Node.js?

Front

Open Source server environment

Back

What is a module in Node.js

Front

Modules are like JavaScript libraries Set of functions

Back

How to include module in node.js

Front

require var http = require('http');

Back

Difference between PHP/ASP and Node.js

Front

Runs asynchronously. Ready to handle next request as file system is opening and reading files

Back

Add content to the end of a file node

Front

fs.appendFile("myFile.txt","content",function(err){...});

Back

Common method to read files on computer in node

Front

fs.readFile('myFile', function(err,data){...})

Back

What is NPM?

Front

Package manager for Node.js packages/modules

Back

What can Node.js do?

Front

Generate dynamic page content Create, open, read, write, delete, and close files on server Modify data in db

Back