javascript confirm alert prompt within method code example Example: javascript alert alert("string");