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);
var name = "John Doe";
function myFunction() {
alert('Hello ' + name);
}
<button onclick="myFunction()">Checkout</button>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With