JavaScript

2620 readers
5 users here now

founded 2 years ago
MODERATORS
1
2
3
4
5
6
7
 
 
gridContainer.width = width * CELL_LENGTH; // 1
gridContainer.style.width = width * CELL_LENGTH; // 2
gridContainer.style.width = width * CELL_LENGTH + "px"; // 3

I just figured out that the code in cases 1 and 2 are wrong. The problem is js doesn't complain about either of them. No errors in console. Nothing!

How should I know or figure out things like this?? When there's no error and I don't know why it doesn't working other than trying different syntax until it works!

I used console and dev tools to figure it out as well but div.width seems to just adding another property to div that's useless for browser. However for the second case, It just refuses to assign wrong syntax value to div.style.width without any complaint

8
 
 

Very talented open-source developer Fabrice Bellard who already is well known for his work on QEMU, the Tiny C Compiler, and FFmpeg, has another accomplishment: Micro QuickJS. The Micro QuickJS JavaScript engine can compile and run JavaScript programs with as little as 10 kB of RAM.

Fabrice Bellard yesterday provided an early Christmas gift to JavaScript enthusiasts with Micro QuickJS. This JavaScript engine is designed for embedded systems with minimal memory use. This entire JavaScript engine requires just around 100 kB of ROM, including the C library. The performance of this engine is comparable to that of QuickJS.

9
 
 

**๐ŸŽ‰ JavaScript Turns 30 Years Old

Back in May 1995, a 33 year old Brendan Eich built the first prototype of JavaScript in just ten days, originally codenamed Mocha (and then LiveScript). On December 4, 1995, Netscape and Sun Microsystems officially announced 'JavaScript' in a press release as "an easy-to-use object scripting language designed for creating live online applications that link together objects and resources on both clients and servers."

Over thirty years, JavaScript has cemented its place at the heart of the Web platform, and more broadly in desktop apps, operating systems (e.g. Windows' use of React Native), mobile apps, and even on microcontrollers.**

10
 
 

**๐ŸŽ‰ JavaScript Turns 30 Years Old

Back in May 1995, a 33 year old Brendan Eich built the first prototype of JavaScript in just ten days, originally codenamed Mocha (and then LiveScript). On December 4, 1995, Netscape and Sun Microsystems officially announced 'JavaScript' in a press release as "an easy-to-use object scripting language designed for creating live online applications that link together objects and resources on both clients and servers."

Over thirty years, JavaScript has cemented its place at the heart of the Web platform, and more broadly in desktop apps, operating systems (e.g. Windows' use of React Native), mobile apps, and even on microcontrollers.**

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
view more: next โ€บ