Unable to get the cancel button in an alert box created using volt mx api

This is the snippet that I am using to create a dynamic alert box using volt API but in the preview of the same, the cancel button is not coming. Why is that happening? I even tried removing the noLabel key as in the documentation it is state that of it is not provided, then the default one will be shown.

But nothing is working for me. What am I doing wrong?

Oh, I found it out. I was missing the alertType key and that was causing that issue

@Analyn Policarpio I have replied to my own query and that is the answer. But I think there is no way to mark my own reply as an answer, which is a bit weird. So, if you can mark my reply as the answer, then it will help others who might be looking for the same query that I have asked