Get greater-than sign compatibility with ES5

28 Views Asked by At

How should I refactor script:

  swangular.confirm("Are you sure?", {
            showCloseButton: true,
            showCancelButton: true
        }).then((result) => {
            if (result.value) {
                console.log("confirm");
            } else {
                console.log("cancel");
            }
          }
        );

to be compatible with ES5?

Currently I receive: Unexpected token: operator (>) inside 'then' codeblock.

0

There are 0 best solutions below