You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have split the extension type off here brilliantly :) but I remember seeing the below piece of code and finding it real cool. It uses the path node core module and is a saver way of getting the endpoint when for example there are too many dots in the pathname and things may get convoluted with a ".split()".
const extension = path.extname(endpoint);
The text was updated successfully, but these errors were encountered:
week4-DFJL-colours/src/handlers.js
Line 22 in f0b29ff
You have split the extension type off here brilliantly :) but I remember seeing the below piece of code and finding it real cool. It uses the path node core module and is a saver way of getting the endpoint when for example there are too many dots in the pathname and things may get convoluted with a ".split()".
const extension = path.extname(endpoint);
The text was updated successfully, but these errors were encountered: