basic question. I am trying to add the variable to the end of my url? What is the correct way to do this? Basically, if I alert filePathZ I want the full path to appear
const filePathX = window.top.$('#FilePath').val().split("/").slice(-2,-1).join('');
const filePathZ=window.top.$('#FilePath').innerHTML = ('/content/enforced/+(filePathX')
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>