Use JavaScript to answer what's outside of the universe.

Source: Internet
Author: User

What is outside the universe? It is estimated that this problem is disturbing a lot of people, let's use a piece of JavaScript code to answer.

First, from a piece of code.
var earth = {name: "Earth", Girlfriend: "Moon", outside: {Name: "Solar System", Boss: "Sun", Second: {name: "Jupiter", Mistress: "Europa II (Europa)",//Eclipse 3.3 version code (Europa) small three: " Ganymede (Ganynede) "//Eclipse 3.4 version Code (Genimide)}, outside: {name:" Milky Way ", outside: {Name:" Universe ", Age: 13700000000}}}};var universe = Earth. Outside. Outside. The age of the universe is: "+ Universe. Age +", "+" Outside of the Universe is: "+ universe. Outside);//Alert (" Outside of the Universe: "+ Universe.)

How does it work? Very simple, copy out, take Chrome as an example, press F12, come out developer tools, choose the right end of the "Console", paste, enter! The answer can be revealed:

Did you see it? Gorgeous one undefined (undefined)

Second, natural language is too flexible to lose rigor and precision

Actually looked at the code we already understood is such the result, here I want to say what? Our daily language is really not rigorous, very imprecise, when the level of a lot of even caused the contradiction we still do not know, for example

I think this is the universe of a lot of people, the layer has a clear boundary , but to the cosmic level, it is an open definition, there is no boundary. But when there is a lot of this, we often forget some of the preconditions we have set in front of us.

For example, you don't ask a girl, "How long is your JJ or something?" (excuse me for a moment without a better example ), because it is obviously a problematic problem, and if the problem itself is problematic, how can you answer it correctly?

Old saying cloud: With, Mao will attach Yan!

When the skin is not, you ask the fur of what color, obviously can not answer, so the girl's best answer is probably only correct you said: "Wood has little jj! "Of course, we certainly won't ask such questions, because the contradictions are too obvious."

But sometimes the contradiction is very deep, such as the outside of the universe is a question of what, we often first decided that the universe is open, there is no boundary, and we say that inside, and the outside implies that it has a definite boundary. After all, there is a definite boundary where we can say "inside" and "outside", so there is a contradiction in it, unless we first discuss the premise that the universe has a boundary, otherwise it will be meaningless to discuss the latter question.

Third, the programming language is relatively rigorous and accurate much

In JavaScript, if you do not have a definition, it is equivalent to the premise is not achieved, undefined neither is , nor no (of course, in programming this can often be false, but if the use of strictly equal to To judge, that is, three equals = = = =, then it is not equal to false). Neither say what it is , nor say what it is. Undefined is undefined, that is undefined. Even if the outside is not defined, you are trying to ask what is outside the universe, nature is undefined. If you try to skip it and ask further questions about "the universe." Outside. Location ":

Then JavaScript will give you an error when running. Of course, when you write is very free, JavaScript does not compile the concept, you write the wrong not to run it does not know, but now the IDE is also very powerful, in my use of eclipse as an example, when you typed "universe." , the hint is already out.

We can see that in addition to several properties and methods in the core JavaScript, we define the two attributes of "first name" and "age". There is no so-called "outside", of course, it is not "outside. Location"!

Use JavaScript to answer what's outside of the universe.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.