I'm pretty new to JavaScript and I want to create a project. I've read online that by using npm init a package.json file is created. By using npm install --save or npm install --save--dev I can install packages and they will be added to that package.json file.
I used
npm install jquery --saveto be able to use jQuery. But how can I include jQuery into my JavaScript file?When I have a project folder with a src-folder and html-folder. Do I have to put the package.json file in the src-folder or in the project folder?
Are there any other conventions I should know about?