function makeMultiplier(Multipler){     var myFun= function(x){         return x*Multipler;     };      return myFun; }  var MultiplyBy3= makeMultiplier(3); console.log(MultiplyBy3(10));    What value is passing in x? and how the output is 30?
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.
Installing Ubuntu 13.04 on a MSATA SSD I am trying to install Ubuntu 13.04 on my 24Gb MSATA SSD. In my laptop, I've also got a 500Gb SATA HDD. I realize that in order for this to work I need to put my /home directory on the 500Gb HDD.   I've tried installing it by creating a ext4 partition on the SSD and a 8Gb swap partition on my HDD. This resulted in an error saying something similar to Cannot install bootloader, please select an other location for the bootloader.   Now before I waste any more time trying to get it to work I'm going to ask a bunch of questions:   Where should I put the swap partition? How big should I make the swap partition? (I've got 12Gb RAM) My 500Gb HDD is currently in Raid mode. Should I change that (to AHCI or IDE)? Where should I put the bootloader if the error message occurs again? How do I make the home directory point to the HDD instead of the SSD? Can I configure Ubuntu to install software/packages on the HDD instead of the SSD? He is loved.   This is something that I've always kind of wondered.  In a sentence like this, is loved a verb or an adjective? Can it be considered either? Argument list too long for ls I get the following error when trying to ls *.txt | wc -l a directory that contains many files:  -bash: /bin/ls: Argument list too long   Does the threshold of this "Argument list" dependent on distro or computer's spec?  Usually, I'd pipe the result of such big result to some other commands (wc -l for example), so I'm not concerned with limits of the terminal. Is it possible to somehow mark a System.Array as immutable.  When put behind a public-get/private-set they can't be added to, since it requires re-allocation and re-assignment, but a consumer can still set any subscript they wish:  public class Immy {     public string[] { get; private set; } }   I thought the readonly keyword might do the trick, but no such luck. I have an itemized list:  \begin{itemize}     \item Lorem     \item Ipsum     \item Sit     \item Dolor     \item Amet \end{itemize}   I want to create an accolade on the right side of 'Lorem' and 'Ipsum', and add a bit of text at the point of the accolade. The level of this text should be between the first and the second line. How can I get this done? Concatenate several columns into one in Google Sheets Single Variable Calculus Reference Recommendations In my online brokerage account, I want to buy a particular stock and I see the following:  Bid:  13.20 x200           Ask:  13.27 x1,000   the current stock price is 13.22.   Can someone explain what the bid and ask prices mean relative to the current price?  If I buy 1000 shares, why would I pay more? Show that $ a，b, \sqrt{a}+ \sqrt{b} \in\mathbb Q \implies \sqrt{a},\sqrt{b} \in\mathbb Q $ Inspired by , I was wondering if there is a simple logical argument to   Show that $ a,b, \sqrt{a}+ \sqrt{b} \in\mathbb Q  \implies  \sqrt{a},\sqrt{b} \in\mathbb Q $  Note that the original link is using a computational method, where as I am looking for a simple logical argument.  I tried (unjutifiably) to argue that if some of two square roots is rational then each one is rational, this is a different than the (incorrect) argument that if sum of two algebraic numbers is rational then each one is rational ( counter example $a=1-\sqrt{2},b= 1+\sqrt{2} $) Can I buy a plane ticket from A-B-C but get on the plane at B? Prove by induction: $$\frac1{n+1} + \frac1{n+2} + \cdots +\frac1{3n+1} &gt; 1$$  adding $1/(3m+4)$ as the next $m+1$ value proves pretty fruitless. Can I make some simplifications in the inequality that because the $m$ step is true by the inductive hypothesis, the 1 is already less than all those values? Linear Transformations: Proving 1 dimensional subspace goes to 1 dimensional I am having trouble understanding this whole question, and how to prove it.  Let $F:\mathbb{R}^n\to\mathbb{R}^m$ be a linear transformation. Prove that if $L$ is a $1$-dimensional subspace of $\mathbb{R}^n$, then  $F(L)=\{y\in\mathbb{R}^m: y=F(x)\text{ for some }x\in L\}$  the image of $L$ under $F$ is a subspace of $\mathbb{R}^m$ with dimension $1$ or $0$. Hence prove that if the kernel of $F$ is $\{0\}$, then the image of $L$ is a $1$-dimensional subspace of $\mathbb{R}^m$ (and so, in this case, $F$ takes lines in $\mathbb{R}^n$ to lines in $\mathbb{R}^m$). Does any particle ever reach any singularity inside the black hole? Construction of a Borel set with positive but not full measure in each interval I was wondering how one can construct a Borel set that doesn't have full measure on any interval of the real line but does have positive measure everywhere.   To be precise, if $\mu$ denotes Lebesgue measure, how would one construct a Borel set $A \subset \mathbb{R}$ such that $$0 &lt; \mu(A \cap I) &lt; \mu(I)$$ for every interval $I$ in $\mathbb{R}$?   Moreover, would such a set necessarily have to contain infinite measure? Forcing series convergence How do I get breading to stick to pre-cooked chicken for pan frying? The shop is five minutes away.     According to the dictionary, away is an adverb. An adverb modifies a verb. In the above example, what word does away modify? Why is away not an adjective?       The shop is five meters tall.     tall is an adjective in the second example. It modifies five meters (does it?). So why is away an adverb? Inbox chops messages in the middle of an HTML character reference The messages in the inbox get chopped if they too long, and the chop can occur in the middle of an HTML character reference as can be seen in this screenshot:    The character being chopped is [ and it appears inside a code snippet, in case it makes a difference. Is the collection of all functions between two sets a set? How do I find the index of an element in a list in Racket?