Complete the code to import the 'os' module in Node.js.
const os = require([1]);The 'os' module provides operating system-related utility methods and properties. To use it, you must import it with require('os').
Complete the code to get the current platform using the 'os' module.
const platform = os.[1]();The method os.platform() returns a string identifying the operating system platform.
Fix the error in the code to get the CPU architecture.
const architecture = os.[1]();The correct method to get CPU architecture is os.arch().
Fill both blanks to create an object with platform and architecture info.
const systemInfo = { platform: os.[1](), arch: os.[2]() };Use os.platform() for platform and os.arch() for architecture to get system info.
Fill all three blanks to log platform and architecture with a message.
console.log(`Running on $[1] platform with $[2] architecture.`); // Output: Running on [3] platform with x64 architecture
Use os.platform() and os.arch() inside the template string. The example output shows 'linux' as platform.