The alert()
function is a property of browser window
objects. It is not really part of JavaScript; it’s just a facility available to JavaScript code in that environment.
Try console.log("Hello World");
More Related Contents:
- JavaScript binding of global result is undefined [closed]
- Is it not possible to stringify an Error using JSON.stringify?
- Async/Await Class Constructor
- Why is console.log() considered better than alert()?
- Check if every element in one array is in a second array
- Where do the parameters in a javascript callback function come from?
- How can I wait In Node.js (JavaScript)? l need to pause for a period of time
- How to write asynchronous functions for Node.js
- how to set socket.io origins to restrict connections to one url
- var vs this in Javascript object
- How to add custom html attributes in JSX
- What does “./bin/www” do in Express 4.x?
- How do I add to an existing json file in node.js
- Why is PassportJS in Node not removing session on logout
- How to monitor the memory usage of Node.js?
- Javascript console.log(object) vs. concatenating string
- Webpack Express Cannot Resolve Module ‘fs’, Request Dependency is Expression
- How to structure nested Promises
- Accessing Express.js local variables in client side JavaScript
- Exporting Node module from promise result
- Detect if an alert or confirm is displayed on a page
- Limit concurrency of pending promises
- What is the difference between .js and .mjs files?
- Accessing line number in V8 JavaScript (Chrome & Node.js)
- Can I use a Gulp task with multiple sources and multiple destinations?
- Heroku: “No default language could be detected for this app” error thrown for node app
- How do you completely remove Ionic and Cordova installation from mac?
- express.js – how to intercept response.send() / response.json()
- How can I read a local file with Papa Parse?
- Promise.resolve().then vs setImmediate vs nextTick