I'm totally new in WordPress as well as in PHP and making my first application with it.
I tried adding defines in the wp-config file and accessing them with Js but it didn't work.
In custom HTML code element of WP Page
<script> var data = "<?php echo PERSONAL_KEY; ?>"; // Didn't worked </script>
Is there any way to achieve getting variables inside inline JS code from an external config file?