Understanding the JavaScript delete operator


#103

My other question is this:

It keeps going back to this every time I put it inside here:

To indent 4 spaces.
https://www.10bestdesign.com/dirtymarkup/js/


const playerVarsParams = ["autoplay", "cc_lang_pref", "cc_load_policy", "controls", "disablekb", "end", "fs", "hl", "iv_load_policy", "list", "listType", "loop", "playlist", "rel", "start"];

It won’t keep it set like this:
https://jsfiddle.net/g6oaht8f/158/

Is there anything I can do to the code to keep it from getting out of order?
So it doesn’t keep becoming 1 long string?

        const playerVarsParams = ["autoplay", "cc_lang_pref", "cc_load_policy", 
        "controls", "disablekb", "end", "fs", "hl", "iv_load_policy", 
        "list", "listType", "loop", "playlist", "rel", "start"];

#104

I recommend that you use the JS Beautifier to tidy up the indenting instead, as that works well to tidy up the code before sending it to JSLint.


#105

I can use this one it turns out.
I just have to keep it check marked.

https://www.10bestdesign.com/dirtymarkup/js/
image


split this topic #106

A post was split to a new topic: Gallery height issue in Magento


closed #107

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.