Javascript code not working in portfolio website

sir i am unable to run javascript code in any project or app.
tried so many time but it did not run.like this code :

document.addEventListener(‘DOMContentLoaded’, function() {
var elems = document.querySelectorAll(’.materialboxed’);
var instances = M.Materialbox.init(elems,options);