The simplest way to do it (if you’re not worried about special Unicode characters) is to call toUpperCase
:
var areEqual = string1.toUpperCase() === string2.toUpperCase();
Related Posts:
- How to check whether a string contains a substring in JavaScript?
- Check if a string has a certain piece of text [duplicate]
- How to convert a string to an integer in JavaScript?
- How can I do string interpolation in JavaScript?
- How do I make the first letter of a string uppercase in JavaScript?
- How do I make the first letter of a string uppercase in JavaScript?
- Creating multiline strings in JavaScript
- Creating multiline strings in JavaScript
- Split string into array
- How do you reverse a string in-place in JavaScript?
- What is the correct way to check for string equality in JavaScript?
- Check if a variable is a string in JavaScript
- What’s the best way to convert a number to a string in JavaScript?
- Check if a variable is a string in JavaScript
- How can I remove a character from a string using JavaScript?
- How to print elements from array with javascript
- How to remove text from a string?
- What does ${} (dollar sign and curly braces) mean in a string in Javascript?
- Delete first character of a string in Javascript
- ES6: Create Strings using Template Literals – Freecodecamp
- How do I check if string contains substring? [duplicate]
- How do I check if string contains substring?
- How can I get the last character in a string?
- How can I get the last character in a string?
- Count the number of occurrences of a character in a string in Javascript
- Converting an object to a string
- Anagrams finder in javascript
- How to interpolate variables in strings in JavaScript, without concatenation?
- How can I extract a number from a string in JavaScript?
- String.Format not work in TypeScript
- How to remove part of a string?
- Escaping HTML strings with jQuery
- Replace all spaces in a string with ‘+’
- How to count string occurrence in string?
- Insert a string at a specific index
- Strip HTML from Text JavaScript
- Strip all non-numeric characters from string in JavaScript
- Wildcard string comparison in Javascript
- Replace spaces with dashes and make all letters lower-case
- Check if a JavaScript string is a URL
- Cross-Origin Read Blocking (CORB)
- How can I remove a specific item from an array?
- How to use Redirect in the new react-router-dom of Reactjs
- How to fix “Cannot read property ‘addEventListener’ of null” error [duplicate]
- What does [object Object] mean?
- Remove class using jQuery
- How do I check whether a checkbox is checked in jQuery?
- Babel 7 – ReferenceError: regeneratorRuntime is not defined
- How can I refresh a page with jQuery?
- How can I create a two dimensional array in JavaScript?
- Does JavaScript pass by reference?
- How to add jQuery code into HTML Page
- Pure JavaScript: a function like jQuery’s isNumeric()
- jquery SlideToggle effect in upward direction?
- Deleting array elements in JavaScript – delete vs splice
- How can I determine if a variable is ‘undefined’ or ‘null’?
- Cannot find module ‘@angular-devkit/core’
- Node.js Error: connect ECONNREFUSED
- How to move an element into another element?
- Is there an arraylist in Javascript?
- How to convert JSON object to JavaScript array?
- How to move all HTML element children to another parent using JavaScript?
- Why is this jQuery click function not working?
- Simple average function in Javascript
- How to uncheck a radio button?
- Angularjs: Error: [ng:areq] Argument ‘HomeController’ is not a function, got undefined
- Truncate a string straight JavaScript
- How to add a tooltip to an svg graphic?
- How do I make a discord bot join a voice channel?
- How to display raw JSON data on a HTML page
- Sorting object property by values
- Getting a random value from a JavaScript array
- Moment Js UTC to Local Time
- Get the size of the screen, current web page and browser window
- How to reload/refresh jQuery dataTable?
- How to enable a disabled checkbox dynamically?
- “Cross origin requests are only supported for HTTP.” error when loading a local file
- How do I concatenate a string with a variable?
- setTimeout callback argument
- Gutenberg – remove / add blocks with custom script
- conditional layout based on if Innerblocks is not empty
- Only loads on the contact template page
- Min And Max Date With Date Format In Elementor Form Not Working
- Strange gibberish JavaScript in Editor – site hacked?
- Building a slide down search box in wordpress
- javascript conflict
- esc_js() breaks unicode sequences by removing the slash ‘\’ character
- How to load JS for specific screen size using wp_enqueue_script?
- Video script issue, JavaScript attribute remains ‘undefined’
- Why does a on Comment edit page submit the page?
- Where to paste Google Map Snippet / JavaScript / CSS for WordPress integration
- TinyMCE Javascript URL Question
- Setting Variable Path to Template Directory inside Script
- Dynamically add Js
- how to prevent added meta box from being injected with style=”position: fixed; top: 56px;” at scroll down
- Contact Form 7 Conditional redirect
- How do i load javascript on a specific custom post template via functions.php?
- Can’t change javascript files
- Live Time on WP showing weirdly [closed]
- Google Map JavaScript error after migrating