Advanced JavaScript Training
Variables and Data Manipulation

Variables and Data Manipulation

Arithmetic Operations: You can perform basic math operations like addition, subtraction, multiplication, and division on numeric variables.

  
    let x = 5;
    let y = 3;
    let sum = x + y; // 8
  

String Concatenation: You can concatenate (combine) strings using the + operator.

    
      let firstName = 'John';
      let lastName = 'Doe';
      let fullName = firstName + ' ' + lastName; // 'John Doe'
    
    

Have a doubt?
Post it here, our mentors will help you out.