how to run java script using a notepad should we use .js extension..?

You run javascript in a browser, u can include it inside the html file or link it to the html file by calling the javascript file (yes the name should be filename.js) (filename being whatever name you want to call it.)

the best place to find the basics about javascript is at w3schools

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.