var a=prompt("Enter username");
var b=prompt("Enter password");
if ([a,b].toString() == ['admin','hello'].toString()) {
alert("Welcome");
} else{
alert("Invalid");
}
More Related Contents:
- Conflict: Multiple assets emit to the same filename
- Stop Chrome Caching My JS Files
- Re-export default in ES 6 modules
- How can I apply a quantity limit to *ngFor? [duplicate]
- select2 changing items dynamically
- How to track a Google Adwords conversion onclick?
- how to pass large data to web workers
- If javascript “(new Date()).getTime()” is run from 2 different Timezones
- Is there a better jQuery solution to this.form.submit();?
- Count of “Defined” Array Elements
- Why does JSON.stringify return empty object notation “{}” for an object that seems to have properties?
- How can i monitor requests on WKWebview?
- $.post throwing “Illegal invocation “
- How do I format a Javascript Date?
- Can I use puppeteer inside chrome extension
- Detect when an iframe is loaded
- Find caret position in textarea in pixels [duplicate]
- Get total height of webView’s content using Javascript
- How to curry a function across an unknown number of parameters
- Google’s Places API and JQuery request – Origin http://localhost is not allowed by Access-Control-Allow-Origin
- draw text in d3 arc javascript
- Form submit button will not submit when name of button is “submit” [duplicate]
- Can javascript running inside an iframe affect the main page?
- How to refactor global variables from MV2 to using chrome.storage in MV3 service worker?
- Next.js app folder: is there some “entry point”? A direct replacement for _app.tsx?
- State not getting updated when calling the related setState in React
- VueJS conditionally add an attribute for an element
- Using Razor, how do I render a Boolean to a JavaScript variable?
- NodeJS – setTimeout(fn,0) vs setImmediate(fn)
- What does ‘::’ (double colon) do in JavaScript?