Write a javascript program that searches and matches output to JSON file content. Example: Json File User output include
Posted: Fri Jul 08, 2022 6:44 am
Write a javascript program that searches and matches outputto JSON file content.
Example:
Json File
User output includes "Inferno" &/or "Eternal" &/or"1000000" .....
Program then displays:
Your superhero is : Eternal Flame
age: 1000000
secret Identity: Unknown
powers: [ "Immortality", "Heat Immunity", "Inferno","Teleportation", "Interdimensional travel" ]
If user output is a word that is not in JSON file such as"Roses", program should return an error message
The program should be able to take in multiple user inputs andproduce the correct output.
Example:
Json File
User output includes "Inferno" &/or "Eternal" &/or"1000000" .....
Program then displays:
Your superhero is : Eternal Flame
age: 1000000
secret Identity: Unknown
powers: [ "Immortality", "Heat Immunity", "Inferno","Teleportation", "Interdimensional travel" ]
If user output is a word that is not in JSON file such as"Roses", program should return an error message
The program should be able to take in multiple user inputs andproduce the correct output.