I have multiple .js
file linked on the page that have functions with the same name like following mockup
first.js
function DisplayContent(data,$target) // data is string
{
$target.html('<span>'+ data +'</span>')
}
second.js
function DisplayContent(data,$target) // data is string
{
$target.html('<div>'+ data +'</div>')
}
Both the above files are referred to the page.
How to can i fix the above issue without renaming the functions.
Please correct if approach is wrong.
Thanks