Relative Content

Tag Archive for javascriptthis

Don’t understand how “this” functions here

can someone please explain to me what “this” refers to in “” and why that is? For context, “result” is just an array with some strings. This is a code I saw in a youtube tutorial for making an autocomplete searchbox (this video, around 20 minutes: https://www.youtube.com/watch?v=pdyFf1ugVfk)