Message from JavaScript discussions

July 2019

— I think Chrome Developer tools have ways to listen for console events and attach a debugger to the worker

Message permanent page

— 

So the worker in my app is globally defined and i can call specific functions, or itself has eventhandlers for some fetches etc.

— How can I take my step in Js as a leaner

— Why the last letter of let name is not getting displayed, it is showing undefined

— Anyone is active r8 nw

— That’s not the last letter. That’s the last + 1.

— Because arrays start in 0

— Got it

— Alert(d[h-1]) √
Alert(d[h]) undefeated x

— Hey my serviceworker is now proxy fetching well, but keeps telling me fetch-worker.js:10 Uncaught (in promise) TypeError: Failed to execute 'clone' on 'Response': Response body is already used ... it stinks!

Message permanent page

— `this.addEventListener('fetch', function (event) {
console.log('fetching ->', event.request);
event.respondWith(
caches.match(event.request)
.then(function (resp) {
return resp || fetch(event.request)
.then(function (response) {
caches.open('v1')
.then(function (cache) {
cache.put(event.request, response.clone());
});
return response;
});
})
);
})`

Message permanent page

— I think i havent understand the arrow functions quite yet in js. Whats wrong here ?



const getComputerWeapon = Math.floor(Math.random() *3) => {

Message permanent page