@@Rolf B
let a = [ 'Hallo', '"Welt"']; console.log(a); console.log(a[0].length); console.log(a[1].length);
Ausgaben sind:
["Hallo", ""Welt""] 5 7
Du willst uns ein halbes XII für ein VII vormachen? 🤣
Welcher Browser gibt ["Hallo", ""Welt""]
aus? Ah, die Wanze von Google. Und die Wanze von Microsoft.
Firefox und Safari zeigen ["Hallo", "\"Welt\""]
an.
Die Console von CodePen macht ["Hallo", "'Welt'"]
draus. WTF?
😷 LLAP
--
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon