Learning the best practices in working with jquery. As discussed by Sir Nate, js scripts should be stored in a public folder and not included in the main blade file, instead calling it via link. As part of that discussion, I studied on how to work with a much cleaner way of with javascript. The difference of VAR, LET and CONST. trying also to create a reusable functions.