How to declare strings in JavaScript?
In JavaScript, you can declare strings using the "string" data type. Here are some examples:
// Declaration of strings
let str1 = "Hello, world!"; // using double quotes
let str2 = 'JavaScript is awesome'; // using single quotes
let str3 = `The result is ${num1 + num2}`; // using backticks for template