Javascript String Question 1

Introduction

We would like to add two String value together.

Creates a new string with "This is a test".


let string1 = "This is a ";
let string2 = "test";

console.log(string3); 


let string1 = "This is a ";
let string2 = "test";

let  string3 = string1 + string2; // creates a new string with "This is a test"
 
console.log(string3); 



PreviousNext

Related