Offline Game - sgml/signature GitHub Wiki

var questions = 
[
["Name a 80s movie about offline computing whose title character shares part of her name with a character played by Grant Gustin?", "Jumpin' Jack Flash"],

["Name the car company that shares a name with the software company which was the predecessor to Salesforce in the offline era?", "Lotus"],

["Name the acronym for the force used to take all electronics offline in the movie 'The Matrix'", "EMP"],

["Name a TV show starring a genetically enhanced girl in a world which is taken offline", "Dark Angel"],

["Name a movie about a deserted island in an offline world co-starring a volley ball", "Cast Away"],

["Name the acronym for the popular offline handheld devices which were the predecessor to the Blackberry", "PDA"],

["Name the most popular device used to unlock content for video games in the offline world", "Gameshark"],

["Name the devices which preceded cell phones for two-way communication in the offline world", "Pagers"],

["Name the technology which preceded Bluetooth for short range communication in the offline world", "Infrared"],

["Name the type of place where video game competitions were held in the offline era", "Arcade"],

["Name the most popular portable music player in the offline world?", "Walkman"],

["Name the star of the movie about a kid who enters a video game tournament which featured Super Mario Brothers", "Fred Savage"],

["Name the co-star who played Luigi in the first movie starring the Super Mario Brothers in the offline world", "John Leguizamo"],

["Name the acronym for the technology which preceded the introduction of flat screen monitors in the offline world", "CRT"],

["Name the programming language which featured a drawing API and preceded Python as the language taught to children in the offline world", "Logo"],

["Name the acronym for the device which preceded hard disk drives in the offline world", "FDD"],

["Name the offline Playstation 2 RPG series which told a story about network security", ".hack"],

["Name the acronym for the recordable optical disc format with the largest capacity for offline storage", "BD-R"],

["Name the popular R&B love song made about technology in the offline world", "Computer Love"],

["What's my name?", "The Offline Game"]

];

var score = 0;

var total = function(){
    window.alert("Your score is: " + score + " points");
    };

var end = function(){
    window.alert("Your score is: " + score + " points");
    window.alert("Thanks for playing!");
    };

var loop = function(value, index, arr){

    var answer = window.prompt(value[0]);
        
    window.alert("Your answer is: " + (value[1] === answer) );

    if (value[1] === answer){
        score = score + 1;
    }

    total();
};

questions.forEach(loop);

end();
⚠️ **GitHub.com Fallback** ⚠️