Try like this Que.toLowerCase()
var Que = prompt("What's my name")
if (Que.toLowerCase() === "siaff") {
document.write("Correct!")
}
else {
document.write("Wrong!")
}
More Related Contents:
- Not looping through for loop – javascript
- How to have html popup appear over main html page?
- jquery get id of input selected text
- ‘innerText’ works in IE, but not in Firefox
- Browser detection in JavaScript? [duplicate]
- How to check if a user likes my Facebook Page or URL using Facebook’s API
- Why Does Firebase Lose Reference outside the once() Function?
- Can you style an html radio button to look like a checkbox?
- Pass data or modify extension html in a new tab/window
- Getting the object’s property name
- getting how many people are in a chat room in socket.io [duplicate]
- How do I use external script that I add to react JS?
- Javascript/HTML Storage Options Under File Protocol (file://)
- How to get text node after element?
- How to unit test a Node.js module that requires other modules and how to mock the global require function?
- How do you get the contextPath from JavaScript, the right way?
- How to advance to the next form input when the current input has a value?
- How to add tag using ReactJS?
- How to create an associative array in JavaScript literal notation
- Making a short alias for document.querySelectorAll
- How to use normal anchor links with react-router
- Only allow certain characters to be entered in html textinput
- Javascript string size limit: 256 MB for me – is it the same for all browsers?
- Rotate a div using javascript
- Async-loaded scripts with DOMContentLoaded or load event handlers not being called?
- Creating array of length n with random numbers in JavaScript
- How to create a method in object literal notation?
- HTML prevent space bar from scrolling page
- How to get JSON object from Razor Model object in javascript
- How to structure a express.js application?