Menggunakan Nilai Lulus Server dan Klien JS Bersama di EJS

 <% var test = 101; %> // variable created by ejs
 <script>
   var getTest = <%= test  %>;  //var test is now assigned to getTest which will only work on browsers
   console.log(getTest);  // successfully prints 101 on browser
</script>
Pleasant Pelican