>>All Html5 Upwork test Answers list
html5 upwork test answers |
Which of the following is the correct way to check browser support for WebSocket?
console.log(WebSocket ? ‘supported’ : ‘not supported’);
console.log(window.WebSocket ? ‘supported’ : ‘not supported’);
console.log(window[WebSocket] ? ‘supported’ : ‘not supported’);console.log(window[‘WebSocket’] ? ‘supported’ : ‘not supported’);
No comments:
Post a Comment