Search code examples
javascriptvariablesalertvar

alert text & variable JavaScript


Can I put both text and variable in the same alert box I thought the code down would work but it didn't

alert('text'Variable);


Solution

  • alert('Your text goes here'+your var goes here);

    I find out the code I should have put