SyntaxFix
Write A Post
Hire A Developer
Questions
You can also try this way:
<?php echo "<script>console.log('$variableName')</script>"; ?>