Code for putting prompt to application
// Prompt code
var userInput = prompt("Please enter your name:");
// Code to use prompt
if (userInput) {
console.log("Hello, " + userInput + "!");
} else {
console.log("Hello!");
}
Opo mobile app na may multiple choiceGagawa po ba ng mobile app na may question and answer?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/question_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="What is the capital of France?" />
<RadioGroup
android:id="@+id/answer_choices"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<RadioButton
Thanks poGawa ka ng object array ng question, answer, and ung right answer. Bukod dun kailangan mo ng variable para sa current index. Show mo first index ng object array tapos compare moy ung piniling sagot sa tamang sagot. Kapag tama, increment mo lang yung current index na array. Kapag mas mataas na yung current index mo, pop mo lang yung page para lumabas yung home.