Answers for "'esversion: 6' javascript"

2

template literal syntax' is only available in ES6 (use 'esversion: 6'). (W119)jshint(W119)

Add a file named .jshintrc to your project and inside this file type this.

{
    "esversion": 6
}
Posted by: Guest on July-18-2020
0

'esversion: 6' javascript

let button = document.createElement('button');
    button.textContent = 'Like';
    document.body.appendChild(button);
    button.addEventListener('click', () => {
        if (button.textContent === 'Like') {
            print('Liked!');
        } else {
            print('Like');
        }
    }); 
}
Posted by: Guest on May-14-2021

Code answers related to "'esversion: 6' javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language