How to use String Operators JavaScript Language

String Operators

On this page

String Operator

Program to use String Operator JavaScript Language

let a = "JavaScript Program";
console.log(a);

Output

JavaScript Program

Steps Description

  • Declare variable a
  • Initialize variable with value of “JavaScript Program” a = “JavaScript Program”
  • Strig Operaters This is a sequence of letters Strings are written inside single or double quotes.
  • The value of a variable is displayed with the help of console.log inbuilt function