using javascript to modify an EJS file code example
Example 1: how to include in ejs
<%- include('./partials/nav.ejs') %>
Example 2: using server passed values and client js together in 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>