Now, say for example I write: let object1 = {a: true} let object2 = object1  object1.a = false  console.log(object1) console.log(object2)  The result of the code above is as you'd expect: {a: false} {a: false}  But if I assigned object1 to say a string or number, anything that isn't a data structure, it doesn't give the same result, here's what I mean: let object1 = 'Hello' let object2 = object1  object1 = 'Hello World'  console.log(object1) console.log(object2)  this is the result that follows: 'Hello World' 'Hello'  I've tried the first case with arrays and sets and the second one with numbers and I also replicated this with Python as well. Can anyone please explain why example 2 doesn't work the same way example 1 does? Is there a difference in the way data structures vs strings and numbers are stored in memory.? I just don't really know honestly, lol!
The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?
How to get glare on "Quick Smoke" (Fire & Smoke explosion) find and rsync? I want to be able to search for files over 14 days and over 10k and than rsync those found files to a destination.  Is there a way to combine these two commands?  find ./ -mtime +14 -size +10k  rsync --remove-sent-files -avz /src /dest When I restart httpd, I get the following error.  What am I missing?  [root@localhost ~]# service httpd restart Stopping httpd:                                            [  OK  ] Starting httpd: Syntax error on line 22 of /etc/httpd/conf.d/sites.conf: Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration   I have installed mod_ssl using yum install mod_ssl openssh  Package 1:mod_ssl-2.2.15-15.el6.centos.x86_64 already installed and latest version Package openssh-5.3p1-70.el6_2.2.x86_64 already installed and latest version   My sites.conf looks like this  &lt;VirtualHost *:80&gt; #    ServerName shop.itmanx.com     ServerAdmin webmaster@itmanx.com      DocumentRoot /var/www/html/magento     &lt;Directory /var/www/html&gt;         Options -Indexes         AllowOverride All     &lt;/Directory&gt;      ErrorLog logs/shop-error.log     CustomLog logs/shop-access.log &lt;/VirtualHost&gt;  &lt;VirtualHost *:443&gt;     ServerName secure.itmanx.com     ServerAdmin webmaster@itmanx.com      SSLEngine on     SSLCertificateFile /etc/httpd/ssl/secure.itmanx.com/server.crt     SSLCertificateKeyFile /etc/httpd/ssl/secure.itmanx.com/server.key     SSLCertificateChainFile /etc/httpd/ssl/secure.itmanx.com/chain.crt      DocumentRoot /var/www/html/magento     &lt;Directory /var/www/html&gt;         Options -Indexes         AllowOverride All     &lt;/Directory&gt;      ErrorLog logs/shop-ssl-error.log     CustomLog logs/shop-ssl-access.log     &lt;/VirtualHost&gt; Prove the $n$th Fibonacci number is the integer closest to $\frac{1}{\sqrt{5}}\left( \frac{1 + \sqrt{5}}{2} \right)^n$ Prove that the $n$th Fibonacci number $f_n$ is the integer that is closest to the number $$\frac{1}{\sqrt{5}}\left( \frac{1 + \sqrt{5}}{2} \right)^n.$$   Hi everyone, I don't really understand the problem. I have the following hint, but I don't know how to work it.     Hint: Show that the absolute value of $\frac{1}{\sqrt{5}}\left( \frac{1 - \sqrt{5}}{2} \right)^n$ is less than $1/2$. How to turn off Facebook notifications on Mac OS X? iOS: Your passcode is required to enable Touch ID How to persistently control maximum system resource consumption on Mac? Before Mavericks, I could use /etc/launchd.conf file to change maximum system resource consumption, for example:  limit maxfiles 16384 unlimited limit maxproc 16384 unlimited   It no longer works in Mavericks.  What is the correct way to do it in the recent version of OS X? Search for singleton tags on questions Is there any way to search for questions that have a specific tag and only that lonely tag?  In other words, I'd like to be able to do something like the following to find questions that have a single tag and no other:  [mytag] tagcount:1   This would be very useful for tag cleanup situations to be able to do house-cleaning before nuking a tag. How to select the most recent set of dated records from a mysql table I am storing the response to various rpc calls in a mysql table with the following fields:  Table: rpc_responses  timestamp   (date) method      (varchar) id          (varchar) response    (mediumtext)  PRIMARY KEY(timestamp,method,id)   What is the best method of selecting the most recent responses for all existing combinations of method and id?   For each date there can only be one response for a given method/id. Not all call combinations are necessarily present for a given date. There are dozens of methods, thousands of ids and at least 365 different dates    Sample data:  timestamp  method  id response 2009-01-10 getThud 16 "....." 2009-01-10 getFoo  12 "....." 2009-01-10 getBar  12 "....." 2009-01-11 getFoo  12 "....." 2009-01-11 getBar  16 "....."   Desired result:  2009-01-10 getThud 16 "....." 2009-01-10 getBar 12 "....." 2009-01-11 getFoo 12 "....." 2009-01-11 getBar 16 "....."   (I don't think  is the same question - it won't give me the most recent response) Why is Android refusing to resolve DNS records pointing to internal IP addresses? I gave Google my phone number to verify it, not knowing that it would change it, and now my phone number is completely different? What have I done, and how do I unverify it and change my phone number back? I've not seen/read any female Orcs mentioned in the movies or in the books. In one of the movies, an Uruk-hai is momentarily shown emerging from a giant, grown-Orc sized flesh packet. So are they created with spells, or do they follow the Standard Reproductive Model. "no such file or directory" message when deleting a file that exists on NTFS How could C-3PO see Luke? Book featuring a child learning from a crowdsourced AI book What is the best way to determine the number of days in a month with JavaScript? I've been using this function but I'd like to know what's the most efficient and accurate way to get it.  function daysInMonth(iMonth, iYear) {    return 32 - new Date(iYear, iMonth, 32).getDate(); } Outlook Rule - Move mail that is READ and Older than X days Outlook 2010. Want to create a rule that moves all mail from my inbox to another folder:   Has been read Is older than X days   I was looking at Auto-archiving, but it does not seem to let me be this specific with my criteria. I tried to find a topic here on this (possible problem) but I didn't.   I reported it at  but Tim Hoffmann pointed me that it is not a problem of editor. After tested with nano and pdflatex I'm posting here.  The minimal code produces errors. OK, we can solve it using \\{}.   But is this a problem with TeXlive 2014 or there are some good reasons to have that behavior.  \documentclass{report} \begin{document} test\\ [foo]  test\linebreak [foo]  test\newline [foo] \end{document}      ! Missing number, treated as zero.                        f l.3 test\ [foo] Android WebView for Facebook Like Button Another simple series convergence question: $\sum\limits_{n=3}^\infty \frac1{n (\ln n)\ln(\ln n)}$ I'm being asked to determine if $\displaystyle\sum\limits_{n=3}^\infty \frac1{n (\ln n)\ln(\ln n)}$ converges. So, using Cauchy's Condensation Test, I reduced the problem to one of determining the convergence of $\displaystyle\sum\limits_{n=3}^\infty\frac 1{n\ln (n\ln 2)}$. Am I on the right path, and how do I proceed from here?