Can I use console.log inside forEach in Javascript?
Why doesn't console.log work when passed as a parameter to forEach?
In the case of languages with a C-like syntax, we declare the main() method to return an int or float value (or void).  Is it possible to declare a non-void return type from main() in Java?  If not, then why not?  Does this mean that a Java program doesn't return any value to the OS? Is there a way to change the color of text in a question? I just asked this question: .  The first answer I got totally missed the point of the question (that answer is now deleted).    I think my question would have been clearer if I could have changed the color of a (non-code) word to red, so I could show an example of what I wanted.  Is there a way to do this? I was just curious, why is epic a silver badge if only 73 users have been awarded with it?  For example: Silver Epic - 73  Gold Electorate - 193    Edit: My point was to reduce the level of epic, like "hit the daily reputation cap on 30 days" so it becomes some what at par with other silver badges. When a Java VM crashes with an EXCEPTION_ACCESS_VIOLATION and produces an hs_err_pidXXX.log file, what does that indicate? The error itself is basically a null pointer exception. Is it always caused by a bug in the JVM, or are there other causes like malfunctioning hardware or software conflicts?  Edit: there is a native component, this is an SWT application on win32. What happens when a black hole dies? Does it just vanish into space leaving nothing behind or does it expel some material?    Also, talking more about black holes, as far as I understand the term "temperature", it is defined by the amount of kinetic energy of the particles of a body and from what I have read, there are no particles inside a black hole, I know that you can find the temperature of a black hole by analyzing its Hawking radiation but I cant really understand how the term "temperature" can be applied to a black hole. Does it mean that whatever is that it is inside a black hole has kinetic energy? Have physicist already experienced the death of any regular black hole (by regular I mean space-sized black holes not micro ones created in labs)? Also, where is the Hawking radiation form? Because if it is released by the black hole I bet it must have formed outside the event horizon, but how exactly? Hartshorne Theorem 8.17 My HP Pavilion laptop has Ubuntu 18 version and I once tried to disable InBuilt webcam just for security reasons. But now it wasn't working and I reinstalled newer version of Ubuntu 20. But even after installing newer version the camera is still not working. When I open cheese it shows this screen. I assumed I might have deleted the drivers as I was doing package installation and removel that time. Please suggest me what should I do to get this working. How do I programmatically force an onchange event on an input? How do I programmatically force an onchange event on an input?  I've tried something like this:  var code = ele.getAttribute('onchange'); eval(code);   But my end goal is to fire any listener functions, and that doesn't seem to work.  Neither does just updating the 'value' attribute. Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error? Blender resizing my image in half I have a problem. I'm trying to render an image and the resolution is 500x280. After I render the image and save it, for some reason the image gets resized to 250x140. I'm unsure why it happends. Is the W statistic output by wilcox.test() in R the same as the U statistic? How to convert a currency string to a double with jQuery or Javascript? Check if url has domain name and not an ip How do they express the time, in American and British English? Sum of derivatives of a polynomial What is the best regular expression to check if a string is a valid URL? How can I check if a given string is a valid URL address?  My knowledge of regular expressions is basic and doesn't allow me to choose from the hundreds of regular expressions I've already seen on the web. Is there a term for coining a phrase for a word that already exists? How can I iterate over each file in a directory using a for loop?  And how could I tell if a certain entry is a directory or if it's just a file? Why this proof $0=1$ is wrong?(breakfast joke) We have $$e^{2\pi i n}=1$$  So we have $$e^{2\pi in+1}=e$$  which implies $$(e^{2\pi in+1})^{2\pi in+1}=e^{2\pi in+1}=e$$ Thus we have $$e^{-4\pi^{2}n^{2}+4\pi in+1}=e$$  This implies $$e^{-4\pi^{2}n^{2}}=1$$  Taking the limit when $n\rightarrow \infty$ gives $0=1$. Could we please be a bit nicer to new users? There is a distinct decline in the level of civility on all the sites here.  Some of this is due to new users coming in and posting spam and other nonsense, but the off-topic and downvote buttons are doing a pretty good job of keeping this under control. Unfortunately, a lot of this is coming from more experienced users, and the site's built-in moderation system does not (and probably cannot) handle this very well.  Folks are rushing to pound new users down with &quot;this belongs on meta!&quot;, &quot;this is off topic&quot;, &quot;this is a duplicate!&quot; and &quot;read the Help!&quot;. (Which is correct, but should be done nicer) All this, of course, is accompanied by a flurry of downvotes.  This is not very welcoming to new users who don't know about meta, the Help, or what counts as off-topic. Now I am not proposing that we just allow off-topic, meta, or duplicate questions.  However, I think we could be gentler in the way we express these sorts of things.  Explain what meta and the FAQ are and provide useful links.  Just using please and thank-you when asking folks to read the FAQ or post something on meta would be an improvement.  I also think we could rein in the downvoting a bit.  Not that we shouldn't vote stuff down, but unless a new user's post is clearly spam, voting it down to -1 or -2 should be sufficient to send a message without piling on. I like Stack Exchange and I want it to become a resource for everyone, not just an elitist site for high-rep users on the sites.