4 views
25 Jan 2026
Print a welcome message for meetcode using Node.js....
3 views
25 Jan 2026
Read MEETCODE_NAME from process.env and print it (use fallback if missing)....
6 views
25 Jan 2026
Read --topic and --level from process.argv and print them as JSON....
5 views
25 Jan 2026
Create a small math module and use it to add two numbers....
5 views
25 Jan 2026
Detect if running in CommonJS and print a friendly note....
4 views
25 Jan 2026
Print the directory of the current file and join a child path....
3 views
25 Jan 2026
Parse a JSON string safely and print an error message on failure....
5 views
25 Jan 2026
Measure how long a function takes using process.hrtime.bigint()....
3 views
25 Jan 2026
Exit with code 1 when an input number is negative....
6 views
25 Jan 2026
Write a small logger that prefixes time and 'meetcode'....
5 views
25 Jan 2026
Show that requiring the same module twice returns the same instance....
3 views
25 Jan 2026
Convert a string to number and print 0 if it is not a valid number....
4 views
25 Jan 2026
Generate a random id for meetcode logs using crypto....
5 views
25 Jan 2026
Merge user config JSON into defaults and print final JSON....
5 views
25 Jan 2026
Use Node assert to validate a condition and print PASS....
5 views
25 Jan 2026
Print heapUsed in MB using process.memoryUsage()....
4 views
25 Jan 2026
Use queueMicrotask to schedule work and show ordering....
4 views
25 Jan 2026
Convert a file path to file URL and back, print both....
3 views
25 Jan 2026
Cache a slow function result in a Map and print cache hits....
4 views
25 Jan 2026
Handle unhandledRejection and print a friendly message....