load('validateLab1.js') throwing Error

2019-06-19T20:21:24.979+0530 E - [js] file [validateLab1.js] doesn’t exist
2019-06-19T20:21:24.980+0530 E QUERY [js] Error: error loading js file: validateLab1.js :


The file ‘validateLab1.js’ has to be in the same folder where you start your mongo connection. Check that you have it there, or provide the full path to the file. Your error message shows that the file isn’t where the mongo process can find it.