PHP Integer do JS Integer

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