What’s the difference between using “let” and “var” to declare a variable in JavaScript?

ECMAScript 6 introduced the let statement. The difference is scoping. var is scoped to the nearest function block and let is scoped to the nearest enclosing block, which can be smaller than a function block. Both are global if outside any block. Also, variables declared with let are not accessible before they are declared in … Continue reading What’s the difference between using “let” and “var” to declare a variable in JavaScript?

Limiting social media use reduced loneliness and depression in new experiment

The idea that social media can be harmful to our mental and emotional well-being is not a new one, but little has been done by researchers to directly measure the effect; surveys and correlative studies are at best suggestive. A new experimental study out of Penn State, however, directly links more social media use to … Continue reading Limiting social media use reduced loneliness and depression in new experiment

Crazy Work Hours and Lots of Cameras: Silicon Valley Goes to China

A group of Silicon Valley executives at the investment firm Sinovation Ventures in Beijing in August. It was part of a trip to China their companies organized to explore how the country has rapidly become a tech power to rival the United States. One Chinese technology executive said he worked 14 to 15 hours a … Continue reading Crazy Work Hours and Lots of Cameras: Silicon Valley Goes to China

China’s obsession with short videos has its internet giants worried

Take a subway ride in China and expect to see a lot of commuters’ eyes glued to TikTok videos on their phones. Video clips like TikTok’s are now consuming nearly nine percent of Chinese people’s time online, a 5.2 percent jump from 2017, according to app analytics firm QuestMobile. Apps such as TikTok — which … Continue reading China’s obsession with short videos has its internet giants worried