[Solved] find cities and country name from string
It all starts from function start() at the bottom. For displaying purpose i’ve used a small dataset but you can require the data from the json file by using const data = require(‘data.json’). I’ve tested for large dataset also, works like a charm. Hope it helps. const data = { “United States”:[ “Washington”,”Bratislava”,”Hard”,”Going”], “Afghanistan”: [ … Read more