"Javascript advanced programming" Reading Notes, javascript advanced

Source: Internet
Author: User

"Javascript advanced programming" Reading Notes, javascript advanced

1. js does not have block-level scope

if(true){var color ="blue";}alert(color); //"blue"for (var i=0; i<10 i++){doSomething(i);}alert(i); // "10"

For block-level scope languages, the variables defined by the initialization variable expression of the for statement only exist in the loop environment. For JavaScript, even after the for loop execution technology, variable I created by the for statement still exists in the execution environment outside the loop.


Example of Reading Notes (to be written !)

Thoughts on reading fate

A few days ago, I bought a book In Shucheng, called "dripping water, hiding the Sea". There are 300 classic philosophical stories in it. Now I will taste a little story called destiny.
Destiny refers to the fate of a single child. One is Divination by a monk as "champion" and the other is "beggar ". Two decades later, the original "champion" became a beggar, while the "beggar" became a "champion ".
God said: "I give everyone 1/3 of his fate, and the rest is how to grasp it ."
After reading this passage, I was very touched. There are many simple words to grasp and grasp fate, but how many people really grasp their own destiny? You don't have to blame your talent, let alone your own destiny, because fate is in your own hands and you can change it at any time! If you want
Reading "never mind weapons"
A person who has said goodbye to weapons is either a prisoner of the enemy or a prisoner of love. I am not very good at self-protection. I am really a person who gives up self-protection. just like the database of life, you can open all programs and read all files at any time without entering the password. what I am talking about is a prisoner in this sense. when I put myself in the sun, I realized that there was no disguise, and the days of concealment were disturbing. when I realized that the resistance was helpless, how much time was irretrievable, and how much memory gradually fades out from my heart. after all, a prisoner is a person who cannot resist harm, that is, to have enough courage to give up hope and must bear all the pressure to survive. originally, in a personal space, you can immerse yourself in your own fantasies, and you can create virtual flowers from the dust. a person who gives up self-protection cannot cheat himself, only by constantly purifying the inner world.

After reading the paper of hampir
Shakespeare's "Hamlet" is a classic masterpiece. on the surface, this book is not much different from historical legends. It tells the story of Prince Denmark's revenge for his father, which is full of bloody violence and death. as
Horazu, a Chinese character in the drama, said: you can hear rape and kill, unusual repairs, decisions in the dark, accidental slaughter, tactics of killing by hand, and self-harm ending. the twists and turns of the plot, closely around revenge
Expand. he hurried back to China from wandunburg, Germany to attend his father's funeral. What makes him unacceptable was that he did not catch up with his father's funeral, he witnessed the wedding of his mother and uncle kraudis, which had made hamwright suspect. In addition, at night, he met his father's dead soul on the terrace of the palace Castle and mourned, this violent behavior was done by Uncle James and asked him to avenge his father. so far, he began a difficult revenge process, and began a battle with kradis. in the end, the sword of revenge was issued to kradiss.

Count of Christchurch
Love is complete, hate is thorough. the reward is complete, and the revenge is complete. this is what I feel most after reading "Revenge of Christchurch. there is a saying in China that revenge of a gentleman is not too late for ten years. Revenge also needs to be refined and powerful, and it is not just a matter of time. the Count of Christchurch explained the saying most specifically with his own actions. after 14 years of his career in the dungeon, his life is to find his loved ones, beneents, and enemies. after confirming the person we are looking for, he did not go through the fire as we have seen in martial arts novels. he chose his own method. for the ship owner who once had favor with him, he did his best and silently supported him. In various ways, he never let them know that he was actually here for good. if his reward is touching, his revenge is so full that we are a little surprised when we have a few bits.
Interpretation of dreams
Freuch (1856 -- l939) is a famous Austrian psychologist and founder of the School of spiritual analysis. his work spans half a century and has a wide and profound influence on literature, philosophy, theology, ethics, aesthetics, political science, sociology, and mass psychology, if we use the scope of the impact as a measure of greatness, then freusi is undoubtedly the greatest psychologist. in the history of human thoughts, freuch initiated another revolution of the neighborhood. He pointed out that the human consciousness cannot be controlled by consciousness, and the human subconscious contains a huge psychological content, in his most rational voice, he told us about the irrational nature of mankind. the interpretation of dreams is not ...... remaining full text>

Reading Notes for Middle School Students

Childhood
During this summer vacation, I read Gorky's self-transmitted novels. During this summer vacation, I read Gorky's self-transmitted novels childhood, which gave me deep feelings.
Maxim Gorky was born in a poor woodworking family. during the brutal Tsar regime, Gorky suffered the hardships: The child lost his father, but was abused by his grandfather. people around him are so selfish, greedy, and full of hate ......
Gorky's childhood was so miserable. Compared with him, I was much happier.
I was born in a beautiful place in the mountains and rivers, with the care of my parents, the kind and affection of my loved ones, and the love of my friends. play in bamboo, pick mushrooms in the mountains, capture crabs in the stream, catch butterflies, smell flowers, and chase grasshoppers. My childhood begins with carefree.
With a big basket, I stumbled and picked up wheat behind my cousin, but the big basket always hit my heel. the two little braid arms dance up and down happily, and the white butterfly dancing around happily. blue blue sky, cloudification, breeze teasing clothes, the basket of wheat ears has more than half. good childhood, that is, spending time in happy and pleasant work.
He entered the campus where the books were full of fragrance and became a great student. A full day begins with a wide array of reads. the teacher enthusiastically taught us the knowledge. The students discussed each other. We were like a small sapling, and were receiving the moisture of spring breeze and rain. We learned more and better knowledge to thrive. in this sea of knowledge, I ended my happy childhood and began to mature.
I live in a socialist country that is full of humanity. Here there are no shoes, no beats, no hatred, no greed, no good manners, and no endless violence or scandal. people here are kind, pure, and optimistic, so my childhood is full of happiness and happiness.
Childhood friends is excerpted from Gorky's childhood. This article depicts the glorious human character "grandmother" with extremely delicate and expressive strokes.
Let us go along the warm and smooth text river Gorky has created for us to seize those who are flowing, thinking, and understanding, A charming "grandmother" will stand in front of you and smile at you ...... When my grandmother didn't listen to my voice, she looked very fierce. "The lips are twisting, and the black eyes are shining angrily ". When I asked why my hair was so long, my grandmother immediately changed her face and said, "I still say in the warm and gentle tone of yesterday ". My grandmother always speaks to me in this warm and gentle tone.
He said that his hair was the punishment God gave himself. He was filled with humor and a cheerful person. "Let's go to bed. It's still early. -- the sun just got up all night ......" In a fairy tale world, what a kind old man says can be imagined with a smile on her face, and she can feel her relaxed and harmonious tone.
"I don't want to go to bed !" The exclamation mark shows my strong attitude and shows my unlimitedly or even slightly unrestrained manners in front of my grandmother. In my words, my grandmother immediately agreed, "I don't want to go to bed ." This is how my grandmother respects me-the will of a child! Her ordinary words, like the sunshine outside the window, warm my young soul.
"How did you break the milk bottle yesterday? !" In my grandmother's question, there is a slight blame, but more is caring. When I spoke earlier, my grandmother didn't make me whisper. She was not angry when I shouted that, but now she kept me quiet. She combed her hair while talking, and looked at the sofa. My mom fell asleep on the sofa! Oh, my grandmother didn't want to let her know about it, and she didn't want me to be scolded by her mother. My grandmother is really a good friend of mine. So I was immersed in my grandmother's gentle words, quietly watching her ......
When she smiled, "a pleasant glow was shining out," and "white teeth were revealed happily." The wrinkled face was "young and clear ", my grandmother was optimistic and full of vigor. The dark clothes couldn't cover her eyes, and she felt "never extinguished, happy, and warm." My grandmother is tenacious and resolute. She "Almost bent into a hunchback", "fat and fat", "but is as brisk and agile as a big cat", my grandmother is cute.
On the morning I woke up that day, I quietly watched my loving, optimistic, strong grandmother and asked her to sing.

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.