Code Snippet:
document.write("Hello, this is written using internal JavaScript!");
console.log("Hello, this is an external JavaScript file!");
view output in console (F12) of browser - Press F12 to open developer tools and navigate to the Console tab.