I am a beginner in JavaScript.
It is possible to write PHP code in the .js file
For example, I have a file one.js
var a = "<?= site_url('whole/new/world'); ?>";
If possible how to write the correct syntax?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I am a beginner in JavaScript.
It is possible to write PHP code in the .js file
For example, I have a file one.js
var a = "<?= site_url('whole/new/world'); ?>";
If possible how to write the correct syntax?