# Access function in app.js

**URL:** <https://forum.elixirforum.com/t/access-function-in-app-js/17501>\
**Category:** Questions\
**Tags:** phoenix, js\
**Created:** [October 24, 2018, 10:12pm UTC](https://forum.elixirforum.com/t/access-function-in-app-js/17501 "2018-10-24T22:12:13Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![otuv](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/otuv/32/10976_2.png) [@otuv](https://forum.elixirforum.com/u/otuv)\
**Post date:** [October 25, 2018, 9:27pm UTC](https://forum.elixirforum.com/t/access-function-in-app-js/17501/9 "2018-10-25T21:27:43Z")

</div>

> [@peerreynders](#):
>
> Phoenix uses a bundler (Phoenix \< 1.4 ? Brunch : webpack 4). This deliberately keeps everything out of the global space so the markup can’t find that function. Meanwhile JavaScript has no problem reaching into the DOM.

I expected something like this and there it is.

> [@peerreynders](#):
>
> [Modern JavaScript Explained For Dinosaurs](https://medium.com/the-node-js-collection/modern-javascript-explained-for-dinosaurs-f695e9747b70)

It does explain the huge jump from w3school’s Hello World to (virtualy) anything in production. Thank you.

---

_[View the full topic](https://forum.elixirforum.com/t/access-function-in-app-js/17501)._
