ASYNC wanderlust project

I’ve never seen variables with a $ prefix on them. there are 5 or so of them on this project… whats the meaning behind them? why add the $prefix?

anything i dont know?


near the end of the project were using .then in the executeSearch function… is there a reason we dont use async await syntax here? is this one of the reasons I need to be very familiar with both?

is .then just the cleanest way to write this?

const executeSearch = () => {
// …
getVenues().then(venues => renderVenues(venues));
// …

You see it in ajax and jquery, read more here: naming conventions - Why would a JavaScript variable start with a dollar sign? - Stack Overflow