Node.js - URL and Query String Handling
Identify the error in this Node.js code snippet:
const url = 'https://example.com/search?query=Node.js'; const encodedUrl = encodeURIComponent(url); console.log(encodedUrl);
