I tried many ways to get the value of a ViewBag in Javascript, but all showed errors. I have a view and a js file.
View