How do I include Javascript Variables inside the message?
swal({ title: "Error!", text: "Javascript Variable?" type: "error", confirmButtonText: "Cool" });
var myVariable = 'Hello World';
swal({
title: "Error!",
text: myVariable,
type: "error",
confirmButtonText: "Cool"
});
@t4t5 @WeirdestYeti @zenflow how can I edit the color of the text after assigning a variable to it?
@jsandleraol https://sweetalert.js.org/docs/#swal-text
Most helpful comment
var myVariable = 'Hello World'; swal({ title: "Error!", text: myVariable, type: "error", confirmButtonText: "Cool" });