Question · JavaScript and TypeScript course · Module 2: Functions, Arrays and Objects

String Data Type

Which of the following are valid ways to create strings in JavaScript?

Answer options

  • const dnaSequence = ATCG;
  • const dnaSequence = "ATCG";
  • const dnaSequence = 'ATCG';
  • All of the above
Show the answer

Correct answer:

  • All of the above