path.extname() function in Node.js
path.extname() function (in node js) is a Node.js topic. In plain words you use it for join folder + file in Windows + Linux. Don’t start with a slogan — start with that picture.
Smallest example: path.join('notes', 'a.txt'). Type it, run it, and say what you see. If you can do that from memory, you know path.extname() function (in node js).
From the example next to this theory: path.extname() function in Node.js — path.join builds OS-safe paths; extname reads the extension..
Trap — string concat with / only. Fix that before you talk about advanced Node.js.
Viva — what is path.extname() function (in node js)? Then show path.join('notes', 'a.txt'). Then name the trap.
What is path.extname() function (in node js)? Show this: path.join('notes', 'a.txt'). Trap: string concat with / only.