I'm a very noob to PHP.
Below is my code
<script>
let x = <?php echo "AB"; ?>
console.log(x)
</script>
Log says that 'ABconsole is not defined'.
Is there anything else I missed??
Thanks, in advance.
I'm a very noob to PHP.
Below is my code
<script>
let x = <?php echo "AB"; ?>
console.log(x)
</script>
Log says that 'ABconsole is not defined'.
Is there anything else I missed??
Thanks, in advance.