node-fs Flashcards

1
Q

What is a directory?

A

folder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a relative file path?

A

path to a file, relative to current position/file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an absolute file path?

A

path not relative to current position, based on root directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What module does Node.js include for manipulating the file system?

A

fs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What method is available in the Node.js fs module for writing data to a file?

A

writefile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Are file operations using the fs module synchronous or asynchronous?

A

asynchronous

How well did you know this?
1
Not at all
2
3
4
5
Perfectly