...

/

Quiz: Global Objects and Modules

Quiz: Global Objects and Modules

This quiz tests your understanding of JavaScript behavior in Node.js, the global object, and using the CommonJS module system.

We'll cover the following...
Technical Quiz
1.

What is the correct way to import a built-in module in Node.js?

A.

import fs from 'fs';

B.

require('fs');

C.

import('fs');

D.

importModule('fs');


1 / 5
...