Hi Guys ,
how can i parse java script.I have a script as follows
test.AddQuestion( new Question ("com.scorm.golfsamples.interactions.etiquette_1",
"When another player is attempting a shot, it is best to stand:",
QUESTION_TYPE_CHOICE,
new Array("On top of his ball", "Directly in his line of fire", "Out of the player's line of sight"),
"Out of the player's line of sight",
"obj_etiquette")
);
test.AddQuestion( new Question ("com.scorm.golfsamples.interactions.etiquette_2",
"Generally sand trap rakes should be left outside of the hazard",
QUESTION_TYPE_TF,
null,
true,
"obj_etiquette")
);
test.AddQuestion( new Question ("com.scorm.golfsamples.interactions.etiquette_3",
"The player with the best score on previous hole tees off:",
QUESTION_TYPE_CHOICE,
new Array("First", "Last", "With a putter"),
"First",
"obj_etiquette")
);
if you look at the code it has question with options and answer in teh end .I want ot extract question and answer part of this script.Can anyone help me with this .Thanks