- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the difference between single and double quotes in JavaScript?
In JavaScript, use any of the single or double quotes for a string. However, you should be consistent in whatever you select. Single and double quotes are the same in JavaScript −
"Let us say: \"Life's good!\"" 'Let us say: "Life\'s good!"' “Let us say: \"Life\'s good!\"" 'Let us say: \"Life\'s good!\"'
Let’s see an example, which is supported by ES6 −
`Will you be "my" friend. I really liked it when I was a kid,.`;
- Related Articles
- What is the difference between single and double quotes in python?
- Single and Double Quotes in Perl
- Single quotes vs. double quotes in C or C++\n
- Difference between single quote (‘) and double quote (“) in PowerShell?
- Is there a PHP function that only adds slashes to double quotes NOT single quotes
- Difference between Single-Cage and Double-Cage Induction Motors
- Write the difference between single entry system and double entry system.
- What is the difference between single-line and multi-line comments in JavaScript?
- What Is Double Dot (..) And Single Dot (.) In Linux?
- What is the difference between a float, double and a decimal in C#?
- What is the difference between == and === in JavaScript?
- Difference Between Float and Double
- What is the difference between comments /*...*/ and /**...*/ in JavaScript?
- What is the difference between jQuery and JavaScript?
- What is the difference between Java and JavaScript?

Advertisements