confirm sweet alert

C
swal({
	title: "Good job!",
	text: "You clicked the button!",
	icon: "success",
	button: "Aww yiss!"
});/* inputOptions can be an object or Promise */const inputOptions = new Promise((resolve) => {  setTimeout(() => {    resolve({      '#ff0000': 'Red',      '#00ff00': 'Green',      '#0000ff': 'Blue'    })  }, 1000)})const { value: color } = await Swal.fire({  title: 'Select color',  input: 'radio',  inputOptions: inputOptions,  inputValidator: (value) => {    if (!value) {      return 'You need to choose something!'    }  }})if (color) {  Swal.fire({ html: `You selected: ${color}` })}swal("Are you sure?", {  dangerMode: true,  buttons: true,});
Source

Also in C: