Yesterday, I was practicing just a real basics and everything worked fine. But when I opened test html today, I noticed that there are the error now:
const otherDate = new Date();
document.getElementById('demo2').innerHTML =
${otherDate.getDay()}/${otherDate.getMonth()}/${otherDate.getFullYear()};
This code printed actual date yesterday, now it shows 0/11/2018 (but console.log for new Date() is ok). I used debugger in browser and it showed me that the problem is that the 'use strict' is enabled and this code is in collision with it. But I have never activate it (I've read that some features or frameworks can enable it, but I didn't use anything, bootstrap, jquery, node.js etc. ... nothing).
Sorry for beginners question, maybe it's trivial, but I could not find the answer anywhere. Thank you for your help. :)
I am sorry, this error:
TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.remoteFunction