I could not understand the scope chain. Why does a * 3 equal to 5?   function doSomething(a) {   function doSomethingElse(a) {     return a - 1;   }    var b = 0;    b = a + doSomethingElse(a * 3);   console.log(b) }  doSomething(2)
How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.
Why does no physical energy-momentum tensor exist for the gravitational field? How to make git mark a deleted and a new file as a file move? Direction of $d\mathbf{l}$ C++ performance of accessing member variables versus local variables Is it more efficient for a class to access member variables or local variables? For example, suppose you have a (callback) method whose sole responsibility is to receive data, perform calculations on it, then pass it off to other classes. Performance-wise, would it make more sense to have a list of member variables that the method populates as it receives data? Or just declare local variables each time the callback method is called?  Assume this method would be called hundreds of times a second...  In case I'm not being clear, here's some quick examples:  // use local variables class thisClass {     public:         void callback( msg&amp; msg )         {             int varA;             double varB;             std::string varC;             varA = msg.getInt();             varB = msg.getDouble();             varC = msg.getString();              // do a bunch of calculations          }  };  // use member variables class thisClass {     public:         void callback( msg&amp; msg )         {              m_varA = msg.getInt();              m_varB = msg.getDouble();              m_varC = msg.getString();               // do a bunch of calculations         }      private:         int m_varA;         double m_varB;         std::string m_varC;  }; Do Mandalorians truly never remove their helmets? In episode 3 of The Mandalorian, it is said that Mandalorians never remove their helmets for any reason. Really? Not even to sleep or bathe? Is there any canonical source for this idea? I’m going to assume that the “never” implies “Never removes their helmets in public…” right?  But in flashback scenes to the Mandalorian’s childhood, nobody is really pictured wearing Mandalorian armor let alone helmets. They simply seemed like basic humans who might just be unified by wearing maroon wardrobes all the time.  So what is the deal with this claim? What is the canonical context of the claim?      Looking for in-universe, canonical explanations; not armchair speculation and theories. If none (currently) exist, legends explanation would suffice. Regardless, please provide references and context. The general consensus is that the single best indicator of a fund's future performance is the its expense ratio . If you look for more than 5 minutes online you discover the  approach to investing; the , etc. It looks like the less you pay for a fund (and therefore the less it's managed), the better it does in the long run.  So why is it that in peoples' 401(k)s there are so many high-cost actively managed funds? Furthermore, why are there so many high-cost actively managed funds in the first place? Shouldn't the market reflect the fact that actively-managed funds typically don't beat the index they benchmark to and and react by purging itself of these crappy funds? Apple Loops Copyright AC1200 Wireless adapter in Ubuntu 19.10 How can I play mp3 files or videos? How to calculate last four digits of $2^{2017}$? can u suggest me any short trick of solving these kind of problems. How to find last four digits of any number raised to some power ? Can I delete unnecessary device simulators of Xcode? I found that Xcode on my laptop consumes much of its storage, so I am trying to delete unnecessary files in Xcode.  There are four directories under Application/Xcode.app/Contents/Developer/Platforms/. I feel that WatchSimulator.platform and AppleTVSimulator.platform are not necessary, because I use Xcode almost only for basic iOS development.  I would like to know if I can delete those platforms directories directly? Installing Maya on Ubuntu Linux Installing Autodesk Maya on Ubuntu is possible, but can be a bit challenging.  Assuming that one already has the required specs and a solid graphics card driver installed, how can it be done? Seeking alternatives to pgRouting for open source routing / network analysis? This is fairly easy.  If I go to https://webserver.com/someurl?a=b, will the someurl?a=b part be protected, or just the contents of the site? MacPorts fails to find 'make' I've installed Xcode and MacPorts on a brand new mid-2013 MacBook Air, but MacPorts doesn't work, saying that it cannot find anything.  mba:~ cnst$ sudo port install wget Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build. Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information. ---&gt;  Computing dependencies for wgetError: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it? mba:~ cnst$   And, indeed, there is no make or clang in the path, but it is definitely installed, though:  mba:~ cnst$ find /Applications -name "clang" -or -name "make" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang /Applications/Xcode.app/Contents/Developer/usr/bin/make mba:~ cnst$   Why is there no make or clang in the path?  Why MacPorts doesn't work?  I notice that  mentions that you have to install something from ADC, Apple Command Line Developer Tools, but ADC doesn't work since last Thursday or Friday due to their security breach, so, the developer tools are nowhere to be found.  What's the proper solution here? Can you add new statements (like print, raise, with) to Python's syntax?  Say, to allow..  mystatement "Something"   Or,  new_if True:     print "example"   Not so much if you should, but rather if it's possible (short of modifying the python interpreters code) Local TLD vs. .com and .com/nl vs .nl I basically have 2 questions about local TLD vs .com.  First question: There already exists a website "keyword.nl" with a crappy website, no SEO optimisation. Is it possible for a website "keyword.com" to rank higher than the "keyword.nl" website on "google.nl" when searching for "keyword"? Or will it always display the .nl website higher because it's a local TLD and the URL consists entirely and only from the searched keyword and it's searched on the .nl version of google?  Second question: I know it's good for SEO to have many websites link to your website. But I also read that local TLD's will score higher on that specific google TLD (.fr website will rank higher in google.fr, etc.) With both those facts in mind, is it better to create a "keyword.com/fr/" and "keyword.com/nl/" website or a "keyword.fr" and a "keyword.nl" website? (In other words, .com/langauge for more links to the website, or a "keyword.local-TLD" website for every different language version of the website) Or maybe even a subdomain? ("fr.keyword.com?")  Kinda new to this, so thanks in advance!  --Edit: additional info--  The reason that I phrased the original question like this is because I wanted to keep the question strictly "webmaster-side". However I feel like maybe I should clarify the background of this question more thoroughly, so the question becomes more clear, and thus the answer. But I don't know if this would make the question a more legal one instead of a "webmaster" one, so please correct me if this is the wrong place to post this question.  I'm a student working on websites in my sparetime, I have basic knowledge about SEO, but that was all local, for companies operating only in one country. However this time a friend contacted me who wants to found a company called "X" (e.g). He wants to ship/operate to multiple countries, but he will first found it (and he himself) lives in The Netherlands (.nl). However there already exists a company in The Netherlands called "x" with the website "x.nl". As far as I understood, the fact that both the companies are called "x" doesn't matter, in trademark/company registery terms, since they are both operating in different work sectors.    But the main issue here is, could my friends website "x.com/nl" outrank the "x.nl" on "google.nl" if you only search on the brand name; "x"?  @Closetnoc:  Hi, thanks a lot for your answer, it gave me some clarification however I feel you misunderstood my first question because of my use of "keyword.com" as an example URL. So I don't really know what conclussion I should draw from your first answer. I updated my question with additional info to clarify it more broadly. From your second answer this is what I understand: A .nl URL will not do that great on google.com, however a .com URL can do just as well as a .nl search on google.nl? So considering the info above, it's best to go with a x.com/fr and a x.com/nl URL, right? Please correct me if I misunderstood. However, if so, that still leaves the first question, if a "x.nl" is already taken, could a "x.com/nl" still outrank it at "google.nl"? Here is what it looks like in Blender Render (Not Cycles).   This is how I set it up.   Basically, I'm trying to export it, but it's not including the &quot;Freestyle&quot; lines. When I open up the .dae file in Finder, it looks like this:   What is wrong here? I want it to be exported (COLLIDA .dae) with the black outline. I'm seeming to think that maybe the &quot;Freestyle&quot; is only for the Blender Render. Am I right? How would I go about getting the black outline included in my exported model? Is it an export setting I have to tick? Thanks for any helpful answers. Equivalent of *Nix 'which' command in PowerShell? How do I ask PowerShell where something is?    For instance, "which notepad" and it returns the directory where the notepad.exe is run from according to the current paths. Disable or prevent multitouch in Activity