tag:blogger.com,1999:blog-26203866639479716962024-03-19T01:46:54.277-07:00The idle ProcessJust want to spend this life happier.Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.comBlogger148125tag:blogger.com,1999:blog-2620386663947971696.post-86543838876654658762024-03-17T20:34:00.000-07:002024-03-17T20:34:21.984-07:00盘点类似河北的儿童杀人案,是如何判决的<iframe style="background-image:url(https://i.ytimg.com/vi/zyHWhXzOWOk/hqdefault.jpg)" width="480" height="270" src="https://youtube.com/embed/zyHWhXzOWOk?si=O_j7VKz8ZLgJXDc_" frameborder="0"></iframe>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-86532454809119517182023-08-07T20:14:00.001-07:002023-08-07T20:14:08.612-07:00第二章 海上浮尸<iframe width="480" height="270" src="https://youtube.com/embed/w8bQbmlZmEo" frameborder="0"></iframe>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-74610623807479669302023-08-07T20:02:00.001-07:002023-08-07T20:02:49.039-07:00第一章 白玉美人<iframe width="480" height="270" src="https://youtube.com/embed/YRh98QJVCJQ" frameborder="0"></iframe>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-39116699810919938972023-07-22T05:54:00.001-07:002023-07-22T05:54:17.387-07:00haunted house-2<iframe style="background-image:url(https://i.ytimg.com/vi/kxhx86bpKzg/hqdefault.jpg)" width="480" height="360" src="https://youtube.com/embed/kxhx86bpKzg" frameborder="0"></iframe>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-82436050854614882802023-07-22T05:44:00.001-07:002023-07-22T05:44:20.508-07:00haunted house -1<iframe width="480" height="360" src="https://youtube.com/embed/BW1TnFXa_cM" frameborder="0"></iframe>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-90483298089015367302023-07-17T04:27:00.000-07:002023-07-17T04:27:03.879-07:00The First Class Divine Doctor <p> She is the only heir to a family of traditional Chinese medicine in the twenty-first century. As a descendant of a family of traditional Chinese medicine, she has a handful of medical skills that bring the combination of Chinese and Western medicine into full play.</p><p><br /></p><p> One day across the border, but became a mountain girl no one asked for, fortunately met the master of a thousand passes - became the only disciple of the strange doctor, crossing to the green hills and green water, grass and trees in the ancient times, nothing bad, at least, do not worry about food and clothing, weekdays nothing to do line line of medicine, tease pets, and by the way, to pick up a small apprentice to practise the medical skills ...... small life is also living a quite free! The first thing I want to do is to get a good deal of money to pay for it!</p><p><br /></p><p> Stranger Li Xia is in the mountain leisurely and small disciples living a life outside the world, coincidentally met this life's own father, a sparrow into a phoenix into a favored official lady. Nothing to accompany parents, do business, open a medical clinic, the days are red-hot, just why she just by the way to help a woman to see a gynecological disease, how the ladies of Kyoto are looking for her? Why was she given in marriage after just a few meetings?</p><p><br /></p><p> ..... He is the first son of the descendant of the emperor, favored, handsome as God, when he was young, he rode the sands at will, and had a great success in battle, and in the end, he defeated the enemy, but could not prevent the traitor - from the dynasty's youngest general of the protection of the country - the former prince, but now he is a crippled person, inferiority complex, living in seclusion with the King of Kang's mansion ... The world only said that the King of Kang paraplegic, lonely and cold, do not like to talk to the Prince of the disability. But I do not know, the moon high loneliness that part of the tenderness has long been given to the heart of the people, may the bright moon in front of the dressing table for her to gently pull the three thousand green threads, plain hand painting eyebrows.</p><p><br /></p><p> Let's see how the two of them hand in hand to complement each other to see this beautiful rivers and mountains .....</p><p><br /></p><p> </p><p><br /></p><p> Mini Theater</p><p><br /></p><p> Jingxin Hall, father and son are relative to the wind and clouds, outside the temple governor hurriedly ran in "Emperor, not good, not good".</p><p><br /></p><p> Emperor Descendant frowned at his majesty, "Why are you so panicked?"</p><p><br /></p><p> The chief steward wandered for a long time "This, this..."</p><p><br /></p><p> Emperor Descendant flashed a hint of impatience "Speak quickly"</p><p><br /></p><p> "It's... Princess Kang has taken the Empress out of the palace!" The Chief Steward hurriedly lowered his head tremblingly after he finished speaking</p><p><br /></p><p> </p><p><br /></p><p> The father and son duo froze and frowned</p><p><br /></p><p> Emperor Descendant blinked his eyes and came to the chief steward "Specifically?"</p><p><br /></p><p> "This morning the Empress said, in the palace boredom, not as Kang Wangfei outside at ease .... When Wangfei Kang heard this, she pulled the Queen Mother out of the palace, saying that she was... Said that she was teaching the Empress Dowager to do business."</p><p><br /></p><p> "What? May have sent someone to follow" Emperor Descendant was instantly anxious</p><p><br /></p><p> "This... Princess Kang and the Empress won't allow it, and"</p><p><br /></p><p> "And what, don't stop and pause"</p><p><br /></p><p> "And both wore men's clothes."</p><p><br /></p><p> Descendants of the emperor heard, angry look to his son, see his son is still leisurely drinking tea, is even more angry "in the future to control your daughter-in-law, their own tossing even if, but also pull on your mother, which in the future, we do not care about the world of the Royal family, change the business?" Descendants Junlan hooked the corner of the beautiful lips, a light breeze!</p><p><br /></p><p> A side of the chief tube wiped sweat, and said "Wangfei said, long so big has not been to the Spring Flower House, said to take the Queen ....." The chief tube has not finished, feel a cold wind in front of my eyes, just a face of cozy Kang Wang, has disappeared!</p><p><br /></p><p> Descendants of the emperor asked suspiciously "Spring Flower House is what place to go?"</p><p><br /></p><p> The chief tube busy and wipe the sweat, look around, came to the descendant of the emperor's ear said, the chief tube just a blink of an eye, the descendant of the emperor has been out of the temple door ....</p>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-38723541867922283962023-06-25T17:53:00.002-07:002023-06-25T17:53:27.865-07:00Stock Trading Strategies<p> <span style="background-color: #fdfdfe; color: #05073b; font-family: PingFang-SC-Regular; font-size: 15px;">There are many types of stock trading strategies, including:</span></p><ol style="-webkit-font-smoothing: antialiased; background-color: #fdfdfe; border: 0px; box-sizing: border-box; color: #05073b; font-family: PingFang-SC-Regular; font-size: 15px; line-height: 1.75; list-style-image: none; list-style-position: outside; margin: 14px 0px 0px; padding: 0px 0px 0px 32px;"><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Value investing: This strategy involves identifying undervalued stocks and holding them for the long term. Value investors look for stocks with low price-earnings ratios, high dividend yields, and strong balance sheets.</p></li><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 6px 0px 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Momentum investing: This strategy involves buying stocks that have been rising in price and selling those that have been falling. Momentum investors believe that stocks that have been performing well will continue to do so, while those that have been performing poorly will continue to fall.</p></li><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 6px 0px 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Contrarian investing: This strategy involves buying stocks that are out of favor with the market and selling those that are popular. Contrarian investors believe that market prices often get ahead of themselves and that markets overreact to good and bad news.</p></li><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 6px 0px 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Technical analysis: This strategy involves using chart patterns, technical indicators, and other technical tools to predict the future price movements of stocks. Technical analysts believe that markets are self-regulating systems and that past price trends can be used to predict future price movements.</p></li><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 6px 0px 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Fundamental analysis: This strategy involves evaluating a company's financial health, including its revenue, profits, cash flow, and balance sheet. Fundamental analysts believe that a company's financial health is more important than its stock price.</p></li><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 6px 0px 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Indexing: This strategy involves investing in an index fund or ETF and holding it for the long term. Index funds are designed to match the performance of a particular index and are typically less expensive and more tax-efficient than actively managed funds.</p></li><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 6px 0px 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Hedge fund strategies: Hedge funds use a variety of strategies, including long/short investing, market neutral strategies, macro trading, and more. Hedge fund managers typically charge high fees and require high minimum investments.</p></li><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 6px 0px 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Options trading: This strategy involves buying and selling options, which are contracts that give the holder the right but not the obligation to buy or sell a particular stock at a specific price on or before a certain date. Options traders can make money on both sides of the market, as long as they correctly predict market movements.</p></li><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 6px 0px 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Swing trading: This strategy involves buying stocks that have fallen in price and selling those that have risen. Swing traders typically hold their positions for several days or weeks and look for short-term price trends to profit from.</p></li><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 6px 0px 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Day trading: This strategy involves buying and selling stocks during the same day and looking for very short-term price trends to profit from. Day traders typically use high-frequency trading algorithms and have access to very fast market data feeds.</p></li><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 6px 0px 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Value growth investing: This strategy involves investing in undervalued growth stocks that have strong fundamentals and are poised to grow in the future. Value growth investors typically look for companies with sustainable competitive advantages and strong financial health.</p></li><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 6px 0px 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Event-driven investing: This strategy involves taking advantage of specific events, such as mergers, acquisitions, spinoffs, bankruptcies, and more, to profit from market reactions to those events. Event-driven investors typically have a short-term time horizon and look for companies that will be affected by the events.</p></li><li style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: inherit; margin: 6px 0px 0px; padding: 0px; position: relative;"><p style="-webkit-font-smoothing: antialiased; border: 0px; box-sizing: border-box; line-height: 1.75; list-style: none; margin: 0px; padding: 0px;">Macro investing: This strategy involves taking advantage of macroeconomic trends, such as changes in interest rates, currencies, and econom</p></li></ol>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-14621850670621970822023-05-04T08:04:00.001-07:002023-05-04T08:04:24.638-07:00The scary witch<iframe width="480" height="360" src="https://youtube.com/embed/TqKnJxNcVKk" frameborder="0"></iframe>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-27570176213071619192023-04-27T19:52:00.001-07:002023-04-27T19:52:26.775-07:00crawler mounted remote control mowers<iframe style="background-image:url(https://i.ytimg.com/vi/xjMAQ3LXaEs/hqdefault.jpg)" width="480" height="360" src="https://youtube.com/embed/xjMAQ3LXaEs" frameborder="0"></iframe>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-79049199584022692072023-02-17T19:17:00.003-08:002023-02-17T19:17:20.618-08:00Low risk, high reward: the asymmetric black swan trade<p>Cornwall Capital was founded in 2003 by two young people who were not in the mainstream - Charlie Ledley, and Gammy Mak. I say they were out of the mainstream because they were not financial professionals from a scientific background, but they were full of imagination, and a keen insight into the market. Their insight is evident in the transactions of First Capital Financial.</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFSuNQAOp29Mx50hC97i6zOhAleW7FvRgyAhOcyLiOfbT7EEvOmoHn3EL-tG7-vGQ_wDGHjbXhTN_gXhj73mTezUIbZFBGrz8aKTbm8bxAyown3_7nJmzO8oz0koVTEaJVkOTMln71cxBkdqQvcWCL9I4imDQEwzdr1bJbRuoelwTbtYihUfl_vA/s628/1520210904298.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="360" data-original-width="628" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFSuNQAOp29Mx50hC97i6zOhAleW7FvRgyAhOcyLiOfbT7EEvOmoHn3EL-tG7-vGQ_wDGHjbXhTN_gXhj73mTezUIbZFBGrz8aKTbm8bxAyown3_7nJmzO8oz0koVTEaJVkOTMln71cxBkdqQvcWCL9I4imDQEwzdr1bJbRuoelwTbtYihUfl_vA/w524-h300/1520210904298.jpg" width="524" /></a></div><br /><p><br /></p><p><br /></p><p>Case Background</p><p>Before betting that the subprime mortgage market would collapse, Cornwall Capital first noticed a credit card business company, First Capital Financial. Throughout the 1990s and early 2000s, First Capital Financial claimed that it had better tools than other firms for analyzing the creditworthiness of subprime credit card users and pricing the risk of lending to them, and the market bought that claim.</p><p><br /></p><p>But in July 2002, First Capital Financial's stock fell 60% in two days after the company voluntarily disclosed a disagreement between them and two government regulators: How much capital did they need to set aside for potential subprime losses? Apparently the market began to suspect that the regulators believed that First Capital Financial had too little capital in reserve, that there might be fraud in it, and were prepared to penalize the company.</p><p><br /></p><p>Over the next 6 months, while First Capital Financial continued to make profits at a phenomenal rate, the market still did not know if there was fraud involved and First Capital Financial's share price fluctuated slightly around $30.</p><p><br /></p><p>After a period of research, two young men from Cornwall Capital came to the conclusion that the company was either fraudulent and its stock would be worthless, or honest and its share price should be around $60 per share. Charlie and Gammy tend to think that First Capital Financial is honest, but it's not that certain.</p><p><br /></p><p>Suppose you have a 60% probability that First Capital Financial is honest, what should you do? What is the potential gain?</p><p><br /></p><p>Trading Strategy 1 - Buy outright</p><p>Assuming we have $30,000 to buy 1,000 shares of First Capital Financial Corporation stock outright, then</p><p><br /></p><p>Scenario 1: Company is fraudulent, stock price = 0, total market cap = 0*1000 = $0</p><p><br /></p><p>Scenario 2: Company is honest, stock price = 60, total market cap = 60*1000 = $60,000</p><p><br /></p><p>Since we believe that case 2 has a 60% probability of occurring, the expected total market value = 0 * 40% + 60,000 * 60% = $36,000</p><p><br /></p><p>Our expected rate of return = (36,000 - 30,000) / 30, 000 * 100% = 20%</p><p><br /></p><p>The higher the probability of believing that First Capital Financial is honest, the higher our expected rate of return. If one is 100% sure that they are honest, then the expected return can be as high as 100%.</p><p><br /></p><p>Trading Strategy 2 - Options Trading</p><p>Cornwall Capital has found that there are still First Capital Financial call options trading in the market. One of them goes like this: The party holding the call option has the right to buy the company's stock for $40 over the next 2 1/2 years, so how much is the option worth?</p><p><br /></p><p>Let's continue with the previous analysis, before the expiration date when the conclusion must be reached whether the company is fraudulent or not.</p><p><br /></p><p>Case 1: The company is fraudulent, stock price = 0, option price = 0</p><p><br /></p><p>Case 2: The company is honest, stock price = 0, option price = 60 - 40 = $20</p><p><br /></p><p>Then the expected value of the option at the expiration date = 0 * 40% + 20 * 60% = $12.</p><p><br /></p><p>Converting from the expected value at expiration to today's option price is relatively complicated, especially since the stock option is an American-style option. Let's give a straightforward estimate of the result, the option price today is about $10.</p><p><br /></p><p>What is the market actually trading at? A mere $3.25!</p><p><br /></p><p>Why? It turns out that the market did not use event analysis to price First Capital Financial's options; the market simply applied the Black-Scholes Model for options and assumed that First Capital Financial's stock price fluctuations, like other stocks, fit a normal distribution: over the next two and a half years: the probability of the stock price being $35 per share is greater than the probability of the stock price being 40 per share, the probability of $40 per share is greater than the probability of $45 per share, and so on.</p><p><br /></p><p>Clearly, the market was mispriced.</p><p><br /></p><p>Cornwall Capital Management immediately buys 8,000 long-term stock options. Total 8,000 * 3.25 = $26,000.</p><p><br /></p><p>Shortly thereafter, First Capital Financial's problems were clarified by regulators, the stock price soared, the option price eventually rose 20 times, and Cornwall Capital Management's $26,000 option position was now worth $526,000.</p><p><br /></p><p>In Summary</p><p>Cornwall Capital did two things: first they researched and concluded that the probability of First Capital Financial being honest was still pretty high; second, they found the option that the market had mispriced, and based on the pricing of that option, First Capital Financial only needed about a 20% probability of being honest to be worth the bet.</p><p><br /></p><p>Fundamental analysis + product selection and exponential amplification of the trade win rate is what made this trade successful for Cornwall Capital, and the results were as expected due to that.</p>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-73046930871076082792022-11-25T16:23:00.001-08:002022-11-25T16:23:39.141-08:00诡异的房子,里面比外面多出一米五的空间,女儿开门出来却消失了<iframe width="480" height="270" src="https://youtube.com/embed/O0yfkBPwtbw" frameborder="0"></iframe>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-78098878056716786562022-11-24T05:23:00.001-08:002022-11-24T05:23:39.299-08:00the man blackened by death<iframe style="background-image:url(https://i.ytimg.com/vi/vNZ8ko7v8Pw/hqdefault.jpg)" width="480" height="270" src="https://youtube.com/embed/vNZ8ko7v8Pw" frameborder="0"></iframe>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-46228215329697259482022-10-16T01:13:00.000-07:002022-10-16T01:13:02.420-07:00动物们的迷惑行为,你能忍住不笑吗?<iframe style="background-image:url(https://i.ytimg.com/vi/pC5yx1g5Kow/hqdefault.jpg)" width="480" height="270" src="https://youtube.com/embed/pC5yx1g5Kow" frameborder="0"></iframe>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-91514349274076585942022-10-16T00:59:00.000-07:002022-10-16T00:59:04.999-07:00人类们的尴尬瞬间,你能忍住不笑吗?<iframe style="background-image:url(https://i.ytimg.com/vi/TpST3ZvZ52s/hqdefault.jpg)" width="480" height="270" src="https://youtube.com/embed/TpST3ZvZ52s" frameborder="0"></iframe>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-11080278877013336142022-10-01T03:53:00.001-07:002022-10-01T03:53:49.144-07:00大内密探零零发中的金像奖戏份<iframe width="480" height="270" src="https://youtube.com/embed/ZXL3Z3a_xgw" frameborder="0"></iframe>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-34253044903944941782022-08-26T02:24:00.001-07:002022-08-26T02:24:16.196-07:00About the Little Lemon receipt maker exercise<p> My homework and exercise of the lesson "About the Little Lemon receipt maker exercise" of the class "programming with Javascript" on coursera.</p><div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;"><br /><div><span style="color: #569cd6;">const</span> <span style="color: #4fc1ff;">menu</span> = [</div><div> {</div><div> <span style="color: #9cdcfe;">Dish</span><span style="color: #9cdcfe;">:</span> <span style="color: #ce9178;">"Italian pasta"</span>,</div><div> <span style="color: #9cdcfe;">price</span><span style="color: #9cdcfe;">:</span> <span style="color: #b5cea8;">9.55</span></div><div> },</div><div> {</div><div> <span style="color: #9cdcfe;">Dish</span><span style="color: #9cdcfe;">:</span> <span style="color: #ce9178;">"Rice with veggies"</span>,</div><div> <span style="color: #9cdcfe;">price</span><span style="color: #9cdcfe;">:</span> <span style="color: #b5cea8;">8.65</span></div><div> },</div><div> {</div><div> <span style="color: #9cdcfe;">Dish</span><span style="color: #9cdcfe;">:</span> <span style="color: #ce9178;">"Chicken with potatoes"</span>,</div><div> <span style="color: #9cdcfe;">price</span><span style="color: #9cdcfe;">:</span> <span style="color: #b5cea8;">15.55</span></div><div> },</div><div> {</div><div> <span style="color: #9cdcfe;">Dish</span><span style="color: #9cdcfe;">:</span> <span style="color: #ce9178;">"Vegetarian Pizza"</span>,</div><div> <span style="color: #9cdcfe;">price</span><span style="color: #9cdcfe;">:</span> <span style="color: #b5cea8;">6.45</span></div><div> }</div><div>];</div><div><span style="color: #569cd6;">function</span> <span style="color: #dcdcaa;">receiptMaker</span>(<span style="color: #9cdcfe;">arr</span>,<span style="color: #9cdcfe;">bool</span>)</div><div>{</div><div> <span style="color: #c586c0;">if</span> (<span style="color: #9cdcfe;">bool</span>==<span style="color: #569cd6;">false</span>)</div><div> {</div><div> <span style="color: #9cdcfe;">console</span>.<span style="color: #dcdcaa;">log</span>(<span style="color: #ce9178;">"Prices without tax:"</span>);</div><div> <span style="color: #9cdcfe;">arr</span>.<span style="color: #dcdcaa;">forEach</span>(<span style="color: #9cdcfe;">element</span> <span style="color: #569cd6;">=></span> {</div><div> <span style="color: #9cdcfe;">console</span>.<span style="color: #dcdcaa;">log</span>(<span style="color: #ce9178;">`Dish:</span><span style="color: #569cd6;">${</span><span style="color: #9cdcfe;">element</span>.<span style="color: #9cdcfe;">Dish</span><span style="color: #569cd6;">}</span><span style="color: #ce9178;"> Price (incl.tax):$</span><span style="color: #569cd6;">${</span><span style="color: #9cdcfe;">element</span>.<span style="color: #9cdcfe;">price</span><span style="color: #569cd6;">}</span><span style="color: #ce9178;">`</span>); </div><div> });</div><div> }</div><div> <span style="color: #c586c0;">else</span></div><div> {</div><div> <span style="color: #9cdcfe;">console</span>.<span style="color: #dcdcaa;">log</span>(<span style="color: #ce9178;">"Prices with 20% tax:"</span>);</div><div> <span style="color: #9cdcfe;">arr</span>.<span style="color: #dcdcaa;">forEach</span>(<span style="color: #9cdcfe;">element</span><span style="color: #569cd6;">=></span>{</div><div> <span style="color: #9cdcfe;">console</span>.<span style="color: #dcdcaa;">log</span>(<span style="color: #ce9178;">`Dish:</span><span style="color: #569cd6;">${</span><span style="color: #9cdcfe;">element</span>.<span style="color: #9cdcfe;">Dish</span><span style="color: #569cd6;">}</span><span style="color: #ce9178;"> Price (incl.tax):$</span><span style="color: #569cd6;">${</span><span style="color: #9cdcfe;">element</span>.<span style="color: #9cdcfe;">price</span>*<span style="color: #b5cea8;">1.2</span><span style="color: #569cd6;">}</span><span style="color: #ce9178;">`</span>);</div><div> })</div><div> }</div><div>}</div><div><span style="color: #569cd6;">let</span> <span style="color: #9cdcfe;">originalPrice</span> = <span style="color: #dcdcaa;">receiptMaker</span>(<span style="color: #4fc1ff;">menu</span>,<span style="color: #569cd6;">false</span>);</div><div><span style="color: #569cd6;">let</span> <span style="color: #9cdcfe;">priceWithTax</span> = <span style="color: #dcdcaa;">receiptMaker</span>(<span style="color: #4fc1ff;">menu</span>,<span style="color: #569cd6;">true</span>);</div><br /><div><span style="color: #9cdcfe;">console</span>.<span style="color: #dcdcaa;">log</span>(<span style="color: #9cdcfe;">priceWithTax</span>);</div><div><span style="color: #9cdcfe;">console</span>.<span style="color: #dcdcaa;">log</span>(<span style="color: #9cdcfe;">originalPrice</span>);</div></div>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-89431849080528151842022-08-08T20:52:00.003-07:002022-08-08T20:52:47.281-07:00Write a React Component from Scratch<p> <span style="background-color: #fffffe; color: green; font-family: Consolas, "Courier New", monospace; font-size: 18px; white-space: pre;">// Change code below this line</span></p><div style="background-color: #fffffe; font-family: Consolas, "Courier New", monospace; font-size: 18px; line-height: 24px; white-space: pre;"><div><span style="color: blue;">class</span> <span style="color: teal;">MyComponent</span> <span style="color: blue;">extends</span> <span style="color: teal;">React</span>.<span style="color: teal;">Component</span> {</div><div> <span style="color: blue;">constructor</span>(<span style="color: #00107e;">props</span>) {</div><div> <span style="color: blue;">super</span>(<span style="color: #00107e;">props</span>);</div><div> }</div><div> <span style="color: #00107e;">render</span>() {</div><div> <span style="color: blue;">return</span> (</div><div> <span style="color: green;">// The JSX code you put here is what your component will render</span></div><div> <<span style="color: #00107e;">div</span>><<span style="color: #00107e;">h1</span>><span style="color: teal;">My</span> <span style="color: teal;">First</span> <span style="color: teal;">React</span> <span style="color: teal;">Component</span>!</<span style="color: #00107e;">h1</span>></<span style="color: #00107e;">div</span>></div><div> );</div><div> }</div><div>};</div><br /><div><span style="color: teal;">ReactDOM</span>.<span style="color: #00107e;">render</span>(<<span style="color: teal;">MyComponent</span> />,<span style="color: #00107e;">document</span>.<span style="color: #00107e;">getElementById</span>(<span style="color: #a31515;">'challenge-node'</span>));</div></div>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-49317683575926610422022-08-06T06:53:00.004-07:002022-08-06T06:53:29.799-07:00Palindrome Checker回文检查<p> Return true if the given string is a palindrome. Otherwise, return false.</p><p><br /></p><p>A palindrome is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing.</p><p><br /></p><p>Note: You'll need to remove all non-alphanumeric characters (punctuation, spaces and symbols) and turn everything into the same case (lower or upper case) in order to check for palindromes.</p><p><br /></p><p>主要思路是,把字符串转换为一个数组,然里利用数组的reverse()方法,得到一个新的数组,这个新的数组再合成字符串,和原来的字符串进行比较。</p><p><br /></p><div style="background-color: #fffffe; font-family: Consolas, "Courier New", monospace; font-size: 18px; line-height: 24px; white-space: pre;"><div><span style="color: blue;">function</span> <span style="color: #00107e;">palindrome</span>(<span style="color: #00107e;">str</span>) {</div><div> <span style="color: blue;">var</span> <span style="color: #00107e;">pattern</span> = <span style="color: maroon;">/[^a-z0-9A-Z]/</span><span style="color: blue;">gi</span>;</div><div> <span style="color: blue;">var</span> <span style="color: #00107e;">newstr</span> = <span style="color: #00107e;">str</span>.<span style="color: #00107e;">replace</span>(<span style="color: #00107e;">pattern</span>,<span style="color: #a31515;">""</span>).<span style="color: #00107e;">toLowerCase</span>();</div><div> <span style="color: #00107e;">console</span>.<span style="color: #00107e;">log</span>(<span style="color: #00107e;">newstr</span>);</div><div> <span style="color: blue;">var</span> <span style="color: #00107e;">newarr</span> = <span style="color: #00107e;">newstr</span>.<span style="color: #00107e;">split</span>(<span style="color: #a31515;">""</span>).<span style="color: #00107e;">reverse</span>();</div><div> <span style="color: #00107e;">console</span>.<span style="color: #00107e;">log</span>(<span style="color: #00107e;">newarr</span>);</div><div> <span style="color: blue;">var</span> <span style="color: #00107e;">reversedStr</span> = <span style="color: #00107e;">newarr</span>.<span style="color: #00107e;">join</span>(<span style="color: #a31515;">""</span>);</div><div> <span style="color: #00107e;">console</span>.<span style="color: #00107e;">log</span>(<span style="color: #00107e;">reversedStr</span>);</div><div> <span style="color: blue;">if</span> (<span style="color: #00107e;">reversedStr</span>==<span style="color: #00107e;">newstr</span>)</div><div> {</div><div> <span style="color: blue;">return</span> <span style="color: blue;">true</span>;</div><div> } </div><br /><div> <span style="color: blue;">return</span> <span style="color: blue;">false</span>;</div><div>}</div><br /><div><span style="color: #00107e;">palindrome</span>(<span style="color: #a31515;">"eye"</span>);</div></div>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-87645410500388403602022-08-06T04:09:00.004-07:002022-08-06T04:09:42.503-07:00Sum All Numbers in a Range<p> We'll pass you an array of two numbers. Return the sum of those two numbers plus the sum of all the numbers between them. The lowest number will not always come first.</p><p><br /></p><p>For example, sumAll([4,1]) should return 10 because sum of all the numbers between 1 and 4 (both inclusive) is 10.</p><p><br /></p><p>解决的思路如下:</p><div style="background-color: #fffffe; font-family: Consolas, "Courier New", monospace; font-size: 18px; line-height: 24px; white-space: pre;"><div><span style="color: blue;">function</span> <span style="color: #00107e;">sumAll</span>(<span style="color: #00107e;">arr</span>) {</div><div> <span style="color: blue;">var</span> <span style="color: #00107e;">big</span>;</div><div> <span style="color: blue;">var</span> <span style="color: #00107e;">small</span>;</div><div> <span style="color: blue;">var</span> <span style="color: #00107e;">sum</span> =<span style="color: #098658;">0</span>;</div><div> <span style="color: blue;">if</span>(<span style="color: #00107e;">arr</span>[<span style="color: #098658;">0</span>]>=<span style="color: #00107e;">arr</span>[<span style="color: #098658;">1</span>])</div><div> {</div><div> <span style="color: #00107e;">big</span> = <span style="color: #00107e;">arr</span>[<span style="color: #098658;">0</span>];</div><div> <span style="color: #00107e;">small</span> = <span style="color: #00107e;">arr</span>[<span style="color: #098658;">1</span>];</div><br /><div> }</div><div> <span style="color: blue;">else</span>{</div><div> <span style="color: #00107e;">big</span> = <span style="color: #00107e;">arr</span>[<span style="color: #098658;">1</span>];</div><div> <span style="color: #00107e;">small</span> = <span style="color: #00107e;">arr</span>[<span style="color: #098658;">0</span>];</div><div> }</div><div> <span style="color: blue;">for</span> (<span style="color: blue;">let</span> <span style="color: #00107e;">i</span> = <span style="color: #00107e;">small</span>;<span style="color: #00107e;">i</span><=<span style="color: #00107e;">big</span>;<span style="color: #00107e;">i</span>++)</div><div> {</div><div> <span style="color: #00107e;">sum</span>+=<span style="color: #00107e;">i</span>;</div><div> }</div><div> <span style="color: blue;">return</span> <span style="color: #00107e;">sum</span>;</div><div>}</div><div><span style="color: #00107e;">console</span>.<span style="color: #00107e;">log</span>(<span style="color: #00107e;">sumAll</span>([<span style="color: #098658;">1</span>, <span style="color: #098658;">4</span>]));</div><div><span style="color: #00107e;">sumAll</span>([<span style="color: #098658;">1</span>, <span style="color: #098658;">4</span>]);</div></div>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-8409161006553094102022-08-06T03:18:00.004-07:002022-08-06T03:19:11.394-07:00Use the split method to split str into an array of words<p> Use the split method inside the splitify function to split str into an array of words. The function should return the array. Note that the words are not always separated by spaces, and the array should not contain punctuation.</p><p>使用 splitify 函数中的 split 方法将 str 拆分为单词数组。 该函数应返回数组。 请注意,单词并不总是用空格分隔,并且数组不应包含标点符号。</p><p><br /></p><div style="background-color: #fffffe; font-family: Consolas, "Courier New", monospace; font-size: 18px; line-height: 24px; white-space: pre;"><div><span style="color: blue;">function</span> <span style="color: #00107e;">splitify</span>(<span style="color: #00107e;">str</span>) {</div><div> <span style="color: green;">// Only change code below this line</span></div><div> <span style="color: blue;">var</span> <span style="color: #00107e;">pattern</span> = <span style="color: maroon;">/[\s,-.]/</span><span style="color: blue;">gi</span>;</div><div> <span style="color: blue;">var</span> <span style="color: #00107e;">strarr</span> = <span style="color: #00107e;">str</span>.<span style="color: #00107e;">split</span>(<span style="color: #00107e;">pattern</span>);</div><div> <span style="color: #00107e;">console</span>.<span style="color: #00107e;">log</span>(<span style="color: #00107e;">strarr</span>);</div><div> <span style="color: blue;">return</span> <span style="color: #00107e;">strarr</span>;</div><br /><br /><div> <span style="color: green;">// Only change code above this line</span></div><div>}</div><br /><div><span style="color: #00107e;">splitify</span>(<span style="color: #a31515;">"Hello World,I-am code"</span>);</div></div>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-34208198791111465362022-08-06T01:49:00.004-07:002022-08-06T01:49:38.044-07:00javascript实现自己版本的filter<p> <span style="background-color: #fffffe; color: green; font-family: Consolas, "Courier New", monospace; font-size: 18px; white-space: pre;">// The global variable</span></p><div style="background-color: #fffffe; font-family: Consolas, "Courier New", monospace; font-size: 18px; line-height: 24px; white-space: pre;"><div><span style="color: blue;">const</span> <span style="color: #00107e;">s</span> = [<span style="color: #098658;">23</span>, <span style="color: #098658;">65</span>, <span style="color: #098658;">98</span>, <span style="color: #098658;">5</span>];</div><br /><div><span style="color: teal;">Array</span>.<span style="color: #00107e;">prototype</span>.<span style="color: #00107e;">myFilter</span> = <span style="color: blue;">function</span>(<span style="color: #00107e;">callback</span>) {</div><div> <span style="color: green;">// Only change code below this line</span></div><div> <span style="color: blue;">const</span> <span style="color: #00107e;">newArray</span> = [];</div><div> <span style="color: blue;">for</span> (<span style="color: blue;">let</span> <span style="color: #00107e;">i</span>=<span style="color: #098658;">0</span>;<span style="color: #00107e;">i</span><<span style="color: blue;">this</span>.<span style="color: #00107e;">length</span>;<span style="color: #00107e;">i</span>++)</div><div> {</div><div> <span style="color: blue;">if</span> (<span style="color: #00107e;">callback</span>(<span style="color: blue;">this</span>[<span style="color: #00107e;">i</span>])){</div><div> <span style="color: #00107e;">newArray</span>.<span style="color: #00107e;">push</span>(<span style="color: blue;">this</span>[<span style="color: #00107e;">i</span>]);</div><div> }</div><div> </div><div> }</div><div> <span style="color: green;">// Only change code above this line</span></div><div> <span style="color: blue;">return</span> <span style="color: #00107e;">newArray</span>;</div><div>};</div><br /><div><span style="color: blue;">const</span> <span style="color: #00107e;">new_s</span> = <span style="color: #00107e;">s</span>.<span style="color: #00107e;">myFilter</span>(<span style="color: blue;">function</span>(<span style="color: #00107e;">item</span>) {</div><div> <span style="color: blue;">return</span> <span style="color: #00107e;">item</span> % <span style="color: #098658;">2</span> === <span style="color: #098658;">1</span>;</div><div>});</div><div><span style="color: #00107e;">console</span>.<span style="color: #00107e;">log</span>(<span style="color: #00107e;">new_s</span>);</div></div>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-46488512469307951482022-08-06T01:44:00.002-07:002022-08-06T01:44:50.327-07:00javascript map() and filter()<p> <span style="background-color: #f5f6f7; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px;">The variable </span><code style="border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">watchList</code><span style="background-color: #f5f6f7; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px;"> holds an array of objects with information on several movies. Use a combination of </span><code style="border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">filter</code><span style="background-color: #f5f6f7; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px;"> and </span><code style="border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">map</code><span style="background-color: #f5f6f7; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px;"> on </span><code style="border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">watchList</code><span style="background-color: #f5f6f7; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px;"> to assign a new array of objects with only </span><code style="border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">title</code><span style="background-color: #f5f6f7; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px;"> and </span><code style="border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">rating</code><span style="background-color: #f5f6f7; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px;"> keys. The new array should only include objects where </span><code style="border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">imdbRating</code><span style="background-color: #f5f6f7; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px;"> is greater than or equal to 8.0. Note that the </span><code style="border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">rating</code><span style="background-color: #f5f6f7; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px;"> values are saved as strings in the object and you may need to convert them into numbers to perform mathematical operations on them.</span></p><p><span style="background-color: #f5f6f7; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px;"><br /></span></p><div style="background-color: #fffffe; font-family: Consolas, "Courier New", monospace; font-size: 18px; line-height: 24px; white-space: pre;"><div><span style="color: green;">// The global variable</span></div><div><span style="color: blue;">const</span> <span style="color: #00107e;">watchList</span> = [</div><div> {</div><div> <span style="color: #a31515;">"Title"</span>: <span style="color: #a31515;">"Inception"</span>,</div><div> <span style="color: #a31515;">"Year"</span>: <span style="color: #a31515;">"2010"</span>,</div><div> <span style="color: #a31515;">"Rated"</span>: <span style="color: #a31515;">"PG-13"</span>,</div><div> <span style="color: #a31515;">"Released"</span>: <span style="color: #a31515;">"16 Jul 2010"</span>,</div><div> <span style="color: #a31515;">"Runtime"</span>: <span style="color: #a31515;">"148 min"</span>,</div><div> <span style="color: #a31515;">"Genre"</span>: <span style="color: #a31515;">"Action, Adventure, Crime"</span>,</div><div> <span style="color: #a31515;">"Director"</span>: <span style="color: #a31515;">"Christopher Nolan"</span>,</div><div> <span style="color: #a31515;">"Writer"</span>: <span style="color: #a31515;">"Christopher Nolan"</span>,</div><div> <span style="color: #a31515;">"Actors"</span>: <span style="color: #a31515;">"Leonardo DiCaprio, Joseph Gordon-Levitt, Elliot Page, Tom Hardy"</span>,</div><div> <span style="color: #a31515;">"Plot"</span>: <span style="color: #a31515;">"A thief, who steals corporate secrets through use of dream-sharing technology, is given the inverse task of planting an idea into the mind of a CEO."</span>,</div><div> <span style="color: #a31515;">"Language"</span>: <span style="color: #a31515;">"English, Japanese, French"</span>,</div><div> <span style="color: #a31515;">"Country"</span>: <span style="color: #a31515;">"USA, UK"</span>,</div><div> <span style="color: #a31515;">"Awards"</span>: <span style="color: #a31515;">"Won 4 Oscars. Another 143 wins & 198 nominations."</span>,</div><div> <span style="color: #a31515;">"Poster"</span>: <span style="color: #a31515;">"http://ia.media-imdb.com/images/M/MV5BMjAxMzY3NjcxNF5BMl5BanBnXkFtZTcwNTI5OTM0Mw@@._V1_SX300.jpg"</span>,</div><div> <span style="color: #a31515;">"Metascore"</span>: <span style="color: #a31515;">"74"</span>,</div><div> <span style="color: #a31515;">"imdbRating"</span>: <span style="color: #a31515;">"8.8"</span>,</div><div> <span style="color: #a31515;">"imdbVotes"</span>: <span style="color: #a31515;">"1,446,708"</span>,</div><div> <span style="color: #a31515;">"imdbID"</span>: <span style="color: #a31515;">"tt1375666"</span>,</div><div> <span style="color: #a31515;">"Type"</span>: <span style="color: #a31515;">"movie"</span>,</div><div> <span style="color: #a31515;">"Response"</span>: <span style="color: #a31515;">"True"</span></div><div> },</div><div> {</div><div> <span style="color: #a31515;">"Title"</span>: <span style="color: #a31515;">"Interstellar"</span>,</div><div> <span style="color: #a31515;">"Year"</span>: <span style="color: #a31515;">"2014"</span>,</div><div> <span style="color: #a31515;">"Rated"</span>: <span style="color: #a31515;">"PG-13"</span>,</div><div> <span style="color: #a31515;">"Released"</span>: <span style="color: #a31515;">"07 Nov 2014"</span>,</div><div> <span style="color: #a31515;">"Runtime"</span>: <span style="color: #a31515;">"169 min"</span>,</div><div> <span style="color: #a31515;">"Genre"</span>: <span style="color: #a31515;">"Adventure, Drama, Sci-Fi"</span>,</div><div> <span style="color: #a31515;">"Director"</span>: <span style="color: #a31515;">"Christopher Nolan"</span>,</div><div> <span style="color: #a31515;">"Writer"</span>: <span style="color: #a31515;">"Jonathan Nolan, Christopher Nolan"</span>,</div><div> <span style="color: #a31515;">"Actors"</span>: <span style="color: #a31515;">"Ellen Burstyn, Matthew McConaughey, Mackenzie Foy, John Lithgow"</span>,</div><div> <span style="color: #a31515;">"Plot"</span>: <span style="color: #a31515;">"A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival."</span>,</div><div> <span style="color: #a31515;">"Language"</span>: <span style="color: #a31515;">"English"</span>,</div><div> <span style="color: #a31515;">"Country"</span>: <span style="color: #a31515;">"USA, UK"</span>,</div><div> <span style="color: #a31515;">"Awards"</span>: <span style="color: #a31515;">"Won 1 Oscar. Another 39 wins & 132 nominations."</span>,</div><div> <span style="color: #a31515;">"Poster"</span>: <span style="color: #a31515;">"http://ia.media-imdb.com/images/M/MV5BMjIxNTU4MzY4MF5BMl5BanBnXkFtZTgwMzM4ODI3MjE@._V1_SX300.jpg"</span>,</div><div> <span style="color: #a31515;">"Metascore"</span>: <span style="color: #a31515;">"74"</span>,</div><div> <span style="color: #a31515;">"imdbRating"</span>: <span style="color: #a31515;">"8.6"</span>,</div><div> <span style="color: #a31515;">"imdbVotes"</span>: <span style="color: #a31515;">"910,366"</span>,</div><div> <span style="color: #a31515;">"imdbID"</span>: <span style="color: #a31515;">"tt0816692"</span>,</div><div> <span style="color: #a31515;">"Type"</span>: <span style="color: #a31515;">"movie"</span>,</div><div> <span style="color: #a31515;">"Response"</span>: <span style="color: #a31515;">"True"</span></div><div> },</div><div> {</div><div> <span style="color: #a31515;">"Title"</span>: <span style="color: #a31515;">"The Dark Knight"</span>,</div><div> <span style="color: #a31515;">"Year"</span>: <span style="color: #a31515;">"2008"</span>,</div><div> <span style="color: #a31515;">"Rated"</span>: <span style="color: #a31515;">"PG-13"</span>,</div><div> <span style="color: #a31515;">"Released"</span>: <span style="color: #a31515;">"18 Jul 2008"</span>,</div><div> <span style="color: #a31515;">"Runtime"</span>: <span style="color: #a31515;">"152 min"</span>,</div><div> <span style="color: #a31515;">"Genre"</span>: <span style="color: #a31515;">"Action, Adventure, Crime"</span>,</div><div> <span style="color: #a31515;">"Director"</span>: <span style="color: #a31515;">"Christopher Nolan"</span>,</div><div> <span style="color: #a31515;">"Writer"</span>: <span style="color: #a31515;">"Jonathan Nolan (screenplay), Christopher Nolan (screenplay), Christopher Nolan (story), David S. Goyer (story), Bob Kane (characters)"</span>,</div><div> <span style="color: #a31515;">"Actors"</span>: <span style="color: #a31515;">"Christian Bale, Heath Ledger, Aaron Eckhart, Michael Caine"</span>,</div><div> <span style="color: #a31515;">"Plot"</span>: <span style="color: #a31515;">"When the menace known as the Joker wreaks havoc and chaos on the people of Gotham, the caped crusader must come to terms with one of the greatest psychological tests of his ability to fight injustice."</span>,</div><div> <span style="color: #a31515;">"Language"</span>: <span style="color: #a31515;">"English, Mandarin"</span>,</div><div> <span style="color: #a31515;">"Country"</span>: <span style="color: #a31515;">"USA, UK"</span>,</div><div> <span style="color: #a31515;">"Awards"</span>: <span style="color: #a31515;">"Won 2 Oscars. Another 146 wins & 142 nominations."</span>,</div><div> <span style="color: #a31515;">"Poster"</span>: <span style="color: #a31515;">"http://ia.media-imdb.com/images/M/MV5BMTMxNTMwODM0NF5BMl5BanBnXkFtZTcwODAyMTk2Mw@@._V1_SX300.jpg"</span>,</div><div> <span style="color: #a31515;">"Metascore"</span>: <span style="color: #a31515;">"82"</span>,</div><div> <span style="color: #a31515;">"imdbRating"</span>: <span style="color: #a31515;">"9.0"</span>,</div><div> <span style="color: #a31515;">"imdbVotes"</span>: <span style="color: #a31515;">"1,652,832"</span>,</div><div> <span style="color: #a31515;">"imdbID"</span>: <span style="color: #a31515;">"tt0468569"</span>,</div><div> <span style="color: #a31515;">"Type"</span>: <span style="color: #a31515;">"movie"</span>,</div><div> <span style="color: #a31515;">"Response"</span>: <span style="color: #a31515;">"True"</span></div><div> },</div><div> {</div><div> <span style="color: #a31515;">"Title"</span>: <span style="color: #a31515;">"Batman Begins"</span>,</div><div> <span style="color: #a31515;">"Year"</span>: <span style="color: #a31515;">"2005"</span>,</div><div> <span style="color: #a31515;">"Rated"</span>: <span style="color: #a31515;">"PG-13"</span>,</div><div> <span style="color: #a31515;">"Released"</span>: <span style="color: #a31515;">"15 Jun 2005"</span>,</div><div> <span style="color: #a31515;">"Runtime"</span>: <span style="color: #a31515;">"140 min"</span>,</div><div> <span style="color: #a31515;">"Genre"</span>: <span style="color: #a31515;">"Action, Adventure"</span>,</div><div> <span style="color: #a31515;">"Director"</span>: <span style="color: #a31515;">"Christopher Nolan"</span>,</div><div> <span style="color: #a31515;">"Writer"</span>: <span style="color: #a31515;">"Bob Kane (characters), David S. Goyer (story), Christopher Nolan (screenplay), David S. Goyer (screenplay)"</span>,</div><div> <span style="color: #a31515;">"Actors"</span>: <span style="color: #a31515;">"Christian Bale, Michael Caine, Liam Neeson, Katie Holmes"</span>,</div><div> <span style="color: #a31515;">"Plot"</span>: <span style="color: #a31515;">"After training with his mentor, Batman begins his fight to free crime-ridden Gotham City from the corruption that Scarecrow and the League of Shadows have cast upon it."</span>,</div><div> <span style="color: #a31515;">"Language"</span>: <span style="color: #a31515;">"English, Urdu, Mandarin"</span>,</div><div> <span style="color: #a31515;">"Country"</span>: <span style="color: #a31515;">"USA, UK"</span>,</div><div> <span style="color: #a31515;">"Awards"</span>: <span style="color: #a31515;">"Nominated for 1 Oscar. Another 15 wins & 66 nominations."</span>,</div><div> <span style="color: #a31515;">"Poster"</span>: <span style="color: #a31515;">"http://ia.media-imdb.com/images/M/MV5BNTM3OTc0MzM2OV5BMl5BanBnXkFtZTYwNzUwMTI3._V1_SX300.jpg"</span>,</div><div> <span style="color: #a31515;">"Metascore"</span>: <span style="color: #a31515;">"70"</span>,</div><div> <span style="color: #a31515;">"imdbRating"</span>: <span style="color: #a31515;">"8.3"</span>,</div><div> <span style="color: #a31515;">"imdbVotes"</span>: <span style="color: #a31515;">"972,584"</span>,</div><div> <span style="color: #a31515;">"imdbID"</span>: <span style="color: #a31515;">"tt0372784"</span>,</div><div> <span style="color: #a31515;">"Type"</span>: <span style="color: #a31515;">"movie"</span>,</div><div> <span style="color: #a31515;">"Response"</span>: <span style="color: #a31515;">"True"</span></div><div> },</div><div> {</div><div> <span style="color: #a31515;">"Title"</span>: <span style="color: #a31515;">"Avatar"</span>,</div><div> <span style="color: #a31515;">"Year"</span>: <span style="color: #a31515;">"2009"</span>,</div><div> <span style="color: #a31515;">"Rated"</span>: <span style="color: #a31515;">"PG-13"</span>,</div><div> <span style="color: #a31515;">"Released"</span>: <span style="color: #a31515;">"18 Dec 2009"</span>,</div><div> <span style="color: #a31515;">"Runtime"</span>: <span style="color: #a31515;">"162 min"</span>,</div><div> <span style="color: #a31515;">"Genre"</span>: <span style="color: #a31515;">"Action, Adventure, Fantasy"</span>,</div><div> <span style="color: #a31515;">"Director"</span>: <span style="color: #a31515;">"James Cameron"</span>,</div><div> <span style="color: #a31515;">"Writer"</span>: <span style="color: #a31515;">"James Cameron"</span>,</div><div> <span style="color: #a31515;">"Actors"</span>: <span style="color: #a31515;">"Sam Worthington, Zoe Saldana, Sigourney Weaver, Stephen Lang"</span>,</div><div> <span style="color: #a31515;">"Plot"</span>: <span style="color: #a31515;">"A paraplegic marine dispatched to the moon Pandora on a unique mission becomes torn between following his orders and protecting the world he feels is his home."</span>,</div><div> <span style="color: #a31515;">"Language"</span>: <span style="color: #a31515;">"English, Spanish"</span>,</div><div> <span style="color: #a31515;">"Country"</span>: <span style="color: #a31515;">"USA, UK"</span>,</div><div> <span style="color: #a31515;">"Awards"</span>: <span style="color: #a31515;">"Won 3 Oscars. Another 80 wins & 121 nominations."</span>,</div><div> <span style="color: #a31515;">"Poster"</span>: <span style="color: #a31515;">"http://ia.media-imdb.com/images/M/MV5BMTYwOTEwNjAzMl5BMl5BanBnXkFtZTcwODc5MTUwMw@@._V1_SX300.jpg"</span>,</div><div> <span style="color: #a31515;">"Metascore"</span>: <span style="color: #a31515;">"83"</span>,</div><div> <span style="color: #a31515;">"imdbRating"</span>: <span style="color: #a31515;">"7.9"</span>,</div><div> <span style="color: #a31515;">"imdbVotes"</span>: <span style="color: #a31515;">"876,575"</span>,</div><div> <span style="color: #a31515;">"imdbID"</span>: <span style="color: #a31515;">"tt0499549"</span>,</div><div> <span style="color: #a31515;">"Type"</span>: <span style="color: #a31515;">"movie"</span>,</div><div> <span style="color: #a31515;">"Response"</span>: <span style="color: #a31515;">"True"</span></div><div> }</div><div>];</div><br /><div><span style="color: green;">// Only change code below this line</span></div><br /><div><span style="color: blue;">const</span> <span style="color: #00107e;">filteredList</span> = <span style="color: #00107e;">watchList</span>.<span style="color: #00107e;">filter</span>(<span style="color: #00107e;">movie</span>=>(<span style="color: #00107e;">parseFloat</span>(<span style="color: #00107e;">movie</span>[<span style="color: #a31515;">"imdbRating"</span>])>=<span style="color: #098658;">8.0</span>)).<span style="color: #00107e;">map</span>(<span style="color: #00107e;">movie</span>=>({<span style="color: #a31515;">"title"</span>:<span style="color: #00107e;">movie</span>[<span style="color: #a31515;">"Title"</span>],<span style="color: #a31515;">"rating"</span>:<span style="color: #00107e;">movie</span>[<span style="color: #a31515;">"imdbRating"</span>]}));</div><br /><div><span style="color: green;">// Only change code above this line</span></div><br /><div><span style="color: #00107e;">console</span>.<span style="color: #00107e;">log</span>(<span style="color: #00107e;">filteredList</span>);</div></div>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-36079384091202968442022-08-05T21:03:00.002-07:002022-08-05T21:03:54.050-07:00javascript Mutations<p> Return true if the string in the first element of the array contains all of the letters of the string in the second element of the array.</p><p><br /></p><p>For example, ["hello", "Hello"], should return true because all of the letters in the second string are present in the first, ignoring case.</p><p><br /></p><p>The arguments ["hello", "hey"] should return false because the string hello does not contain a y.</p><p><br /></p><p>Lastly, ["Alien", "line"], should return true because all of the letters in line are present in Alien.</p><p><br /></p><div style="background-color: #fffffe; font-family: Consolas, "Courier New", monospace; font-size: 18px; line-height: 24px; white-space: pre;"><div><span style="color: blue;">function</span> <span style="color: #00107e;">mutation</span>(<span style="color: #00107e;">arr</span>) {</div><div> <span style="color: blue;">var</span> <span style="color: #00107e;">temArr</span> =[];</div><div> <span style="color: blue;">for</span>(<span style="color: blue;">let</span> <span style="color: #00107e;">i</span>=<span style="color: #098658;">0</span>;<span style="color: #00107e;">i</span><<span style="color: #00107e;">arr</span>[<span style="color: #098658;">1</span>].<span style="color: #00107e;">length</span>;<span style="color: #00107e;">i</span>++)<span style="color: green;">//要比较的是第二个数组的,所以放在外层,内层每次都要遍历第一个数组,让第二个数组中的字符去与每一个第一个数组中的字符比较,相等就push一个true,然后马上跳出内循环</span></div><div> {</div><div> <span style="color: blue;">for</span> (<span style="color: blue;">let</span> <span style="color: #00107e;">j</span>=<span style="color: #098658;">0</span>;<span style="color: #00107e;">j</span><<span style="color: #00107e;">arr</span>[<span style="color: #098658;">0</span>].<span style="color: #00107e;">length</span>;<span style="color: #00107e;">j</span>++)</div><div> {</div><div> <span style="color: blue;">if</span> (<span style="color: #00107e;">arr</span>[<span style="color: #098658;">1</span>][<span style="color: #00107e;">i</span>].<span style="color: #00107e;">toUpperCase</span>()==<span style="color: #00107e;">arr</span>[<span style="color: #098658;">0</span>][<span style="color: #00107e;">j</span>].<span style="color: #00107e;">toUpperCase</span>())</div><div> {</div><div> <span style="color: #00107e;">temArr</span>.<span style="color: #00107e;">push</span>(<span style="color: blue;">true</span>);</div><div> <span style="color: blue;">break</span>;<span style="color: green;">//这个跳出很重要,如果继续循环,后来又比对成功,再push一个true就会导致我们的标志length不同</span></div><div> }</div><div> }</div><br /><div> }</div><div> <span style="color: #00107e;">console</span>.<span style="color: #00107e;">log</span>(<span style="color: #00107e;">temArr</span>.<span style="color: #00107e;">length</span>);</div><div> <span style="color: #00107e;">console</span>.<span style="color: #00107e;">log</span>(<span style="color: #00107e;">arr</span>[<span style="color: #098658;">1</span>].<span style="color: #00107e;">length</span>);</div><div> <span style="color: blue;">if</span> (<span style="color: #00107e;">temArr</span>.<span style="color: #00107e;">length</span> == <span style="color: #00107e;">arr</span>[<span style="color: #098658;">1</span>].<span style="color: #00107e;">length</span>)<span style="color: green;">//说明每个元素都找到了,都包含</span></div><div> {</div><div> <span style="color: blue;">return</span> <span style="color: blue;">true</span>;</div><div> }</div><div> <span style="color: blue;">return</span> <span style="color: blue;">false</span>;</div><div>}</div><br /><div><span style="color: #00107e;">mutation</span>([<span style="color: #a31515;">"hello"</span>, <span style="color: #a31515;">"hey"</span>]);</div></div>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-8710235696981516152022-08-05T20:36:00.003-07:002022-08-05T20:36:25.601-07:00 Return the lowest index at which a value should be inserted into an array<p> <span style="background-color: #f5f6f7; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px;">Return the lowest index at which a value (second argument) should be inserted into an array (first argument) once it has been sorted. The returned value should be a number.</span></p><p style="background-color: #f5f6f7; box-sizing: border-box; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px; line-height: 1.5rem; margin: 0px 0px 1.2rem; text-shadow: none !important;">For example, <code style="background-color: var(--quaternary-background); border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">getIndexToIns([1,2,3,4], 1.5)</code> should return <code style="background-color: var(--quaternary-background); border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">1</code> because it is greater than <code style="background-color: var(--quaternary-background); border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">1</code> (index 0), but less than <code style="background-color: var(--quaternary-background); border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">2</code> (index 1).</p><p style="background-color: #f5f6f7; box-sizing: border-box; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px; line-height: 1.5rem; margin: 0px; text-shadow: none !important;">Likewise, <code style="background-color: var(--quaternary-background); border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">getIndexToIns([20,3,5], 19)</code> should return <code style="background-color: var(--quaternary-background); border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">2</code> because once the array has been sorted it will look like <code style="background-color: var(--quaternary-background); border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">[3,5,20]</code> and <code style="background-color: var(--quaternary-background); border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">19</code> is less than <code style="background-color: var(--quaternary-background); border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">20</code> (index 2) and greater than <code style="background-color: var(--quaternary-background); border-radius: 0px; box-sizing: border-box; color: var(--tertiary-color); font-family: "Roboto Mono", monospace; font-size: 16.2px; overflow-wrap: anywhere; padding: 2px 4px; text-shadow: none !important;">5</code> (index 1).</p><p style="background-color: #f5f6f7; box-sizing: border-box; color: #1b1b32; font-family: Lato, sans-serif; font-size: 18px; line-height: 1.5rem; margin: 0px; text-shadow: none !important;"><br /></p><div style="background-color: #fffffe; font-family: Consolas, "Courier New", monospace; font-size: 18px; line-height: 24px; white-space: pre;"><div><span style="color: blue;">function</span> <span style="color: #00107e;">getIndexToIns</span>(<span style="color: #00107e;">arr</span>, <span style="color: #00107e;">num</span>) {</div><div> </div><div> <span style="color: #00107e;">arr</span>.<span style="color: #00107e;">sort</span>((<span style="color: #00107e;">a</span>,<span style="color: #00107e;">b</span>)=>{<span style="color: blue;">return</span> <span style="color: #00107e;">a</span>-<span style="color: #00107e;">b</span>});</div><div> <span style="color: blue;">if</span> (<span style="color: #00107e;">num</span>>=<span style="color: #00107e;">arr</span>[<span style="color: #00107e;">arr</span>.<span style="color: #00107e;">length</span>-<span style="color: #098658;">1</span>]){</div><div> <span style="color: blue;">return</span> <span style="color: #00107e;">arr</span>.<span style="color: #00107e;">length</span>;</div><div> }</div><div> <span style="color: blue;">else</span> <span style="color: blue;">if</span>(<span style="color: #00107e;">num</span><=<span style="color: #00107e;">arr</span>[<span style="color: #098658;">0</span>]||<span style="color: #00107e;">arr</span>.<span style="color: #00107e;">length</span>==<span style="color: #098658;">0</span>)</div><div> {</div><div> <span style="color: blue;">return</span> <span style="color: #098658;">0</span>;</div><div> }</div><div> <span style="color: blue;">else</span></div><div> {</div><div> <span style="color: blue;">for</span>(<span style="color: blue;">let</span> <span style="color: #00107e;">i</span>=<span style="color: #098658;">0</span>;<span style="color: #00107e;">i</span><<span style="color: #00107e;">arr</span>.<span style="color: #00107e;">length</span>;<span style="color: #00107e;">i</span>++)</div><div> {</div><div> <span style="color: blue;">if</span>(<span style="color: #00107e;">num</span>><span style="color: #00107e;">arr</span>[<span style="color: #00107e;">i</span>]&&<span style="color: #00107e;">num</span><=<span style="color: #00107e;">arr</span>[<span style="color: #00107e;">i</span>+<span style="color: #098658;">1</span>])</div><div> {</div><div> <span style="color: blue;">return</span> <span style="color: #00107e;">i</span>+<span style="color: #098658;">1</span>;</div><div> }</div><div> }</div><div> } </div><div> </div><div>}</div><div><span style="color: #00107e;">console</span>.<span style="color: #00107e;">log</span>(<span style="color: #00107e;">getIndexToIns</span>([<span style="color: #098658;">40</span>, <span style="color: #098658;">60</span>], <span style="color: #098658;">50</span>));</div><div><span style="color: #00107e;">getIndexToIns</span>([<span style="color: #098658;">40</span>, <span style="color: #098658;">60</span>], <span style="color: #098658;">50</span>);</div></div>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0tag:blogger.com,1999:blog-2620386663947971696.post-59717157813326771942022-08-05T20:15:00.003-07:002022-08-05T20:15:26.459-07:00javascript Falsy Bouncer<p> Remove all falsy values from an array.</p><p>Falsy values in JavaScript are false, null, 0, "", undefined, and NaN.</p><p><br /></p><div style="background-color: #fffffe; font-family: Consolas, "Courier New", monospace; font-size: 18px; line-height: 24px; white-space: pre;"><div><span style="color: blue;">function</span> <span style="color: #00107e;">bouncer</span>(<span style="color: #00107e;">arr</span>) {</div><div> <span style="color: blue;">var</span> <span style="color: #00107e;">temarr</span> =[];</div><div> <span style="color: blue;">for</span> (<span style="color: blue;">let</span> <span style="color: #00107e;">i</span>=<span style="color: #098658;">0</span>;<span style="color: #00107e;">i</span><<span style="color: #00107e;">arr</span>.<span style="color: #00107e;">length</span>;<span style="color: #00107e;">i</span>++)</div><div> {</div><div> <span style="color: blue;">if</span> (<span style="color: teal;">Boolean</span>(<span style="color: #00107e;">arr</span>[<span style="color: #00107e;">i</span>])==<span style="color: blue;">true</span>)</div><div> {</div><div> <span style="color: #00107e;">temarr</span>.<span style="color: #00107e;">push</span>(<span style="color: #00107e;">arr</span>[<span style="color: #00107e;">i</span>]);</div><div> }</div><div> }</div><div> <span style="color: #00107e;">console</span>.<span style="color: #00107e;">log</span>(<span style="color: #00107e;">temarr</span>);</div><div> <span style="color: blue;">return</span> <span style="color: #00107e;">temarr</span>;</div><div>}</div><br /><div><span style="color: #00107e;">bouncer</span>([<span style="color: #098658;">7</span>, <span style="color: #a31515;">"ate"</span>, <span style="color: #a31515;">""</span>, <span style="color: blue;">false</span>, <span style="color: #098658;">9</span>]);</div></div>Bamboo Foresthttp://www.blogger.com/profile/10885079060017118787noreply@blogger.com0