PHP Integer to JS Integer

var str = "<?php echo $phpVariable; ?>";
var str = "<?= $phpVariable ?>";
adgbe