Find the file name without an extension.
Intro to path module
File name
Report a typo
Sample Input 1:
/learn-rest-api/weather-app/layout.htmlSample Output 1:
layoutWrite a program in JavaScript
const path = require('path');
const ourPath = '/learn-rest-api/weather-app/layout.html';
const filename = /* write your code here */
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.