Fetch json and load data while typing in an input field.
- We used the new global
fetch()
function to fetch a json file. this function returns aPromise
. - We used
RegExp
constructor to create a regular expression object and test it.
Fetch json and load data while typing in an input field.
fetch()
function to fetch a json file. this function returns a Promise
.RegExp
constructor to create a regular expression object and test it.