Complete the code to import a Node.js module in Deno using compatibility mode.
import express from '[1]';
In Deno, to import Node.js modules, you prefix the module name with npm: to use compatibility mode.
Complete the code to enable Node.js compatibility in Deno configuration.
"compat": { "[1]": true }
In Deno's configuration, setting compat.node to true enables Node.js compatibility.
Fix the error in the code to import a Node.js built-in module in Deno.
import path from '[1]';
Deno supports Node.js built-in modules by prefixing with node:. So node:path imports the Node.js path module.
Fill both blanks to create a Deno script that uses a Node.js module with compatibility enabled.
import [1] from '[2]'; console.log([1]());
To use a Node.js module like express in Deno, import it with the npm prefix and use the module name as the import variable.
Fill all three blanks to create a Deno script that imports a Node.js built-in module and uses a function.
import [1] from '[2]'; const fullPath = [3].join('home', 'user', 'docs'); console.log(fullPath);
Import the Node.js built-in 'path' module with 'node:path'. Use the variable 'path' and call its 'join' method.
