Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
const path = require('path'); // Get file extension const extension = path.extname('file.txt'); console.log(extension); // More examples console.log(path.extname('index.html')); console.log(path.extname('index.coffee.md')); console.log(path.extname('index.')); console.log(path.extname('index')); console.log(path.extname('.index'));
.txt .html .md .