Skip to content

Instantly share code, notes, and snippets.

@kobitoDevelopment
Created March 20, 2025 12:46
Show Gist options
  • Save kobitoDevelopment/57b9c58be9877fb52873d201a5255bfa to your computer and use it in GitHub Desktop.
Save kobitoDevelopment/57b9c58be9877fb52873d201a5255bfa to your computer and use it in GitHub Desktop.
const result = confirm("OKかキャンセルのどちらかを押してください");
if (result) {
console.log("OKが押されました");
} else if (!result) {
console.log("キャンセルが押されました");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment