I am unable to understand the concept and use of '/' ,'./' and '../' in node.js. Help me to understand it in easy way.
i have a folder fyp in which some files are present and another folder login within that folder and from the files in login folder i want to access file 'welcome.html' of fyp folder by using
response.sendFile(__dirname + 'welcome.html')
. but i don't know how to access this file and it is showing error.
app.get('/', function(request, response)
{ response.sendFile(__dirname + 'welcome.html'); });