PHP Integer ke JS Integer

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