JavaScript Was So Bad They Had To Add A Second Mode To Fix It

JavaScript Was So Bad They Had To Add A Second Mode To Fix It

Web Dev Simplified

1 год назад

63,638 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ahmed Lutfy
Ahmed Lutfy - 04.03.2023 01:58

how do you make the console tab take all the browser space ?

Ответить
Syed Naqvi
Syed Naqvi - 21.01.2023 15:13

awesome as always

Ответить
Sivaramakrishnan
Sivaramakrishnan - 01.12.2022 21:32

Thank you so much for this video ☺️

Ответить
Debranjan Dutta
Debranjan Dutta - 26.11.2022 11:46

Dart should've replaced JS, atleast with flutter the language has a chance now.

Ответить
John Hascall
John Hascall - 09.11.2022 23:50

The arguments "array" sometimes comes in handy in varargs functions.

Ответить
David James
David James - 30.10.2022 07:21

Thank you, Kyle. This helped me immensly.

Ответить
Melonenlord
Melonenlord - 27.10.2022 18:32

I have a question, maybe someone can help.

How can you do something like how Date is implentated in js?
You can call it without the new keyword or with the keyword and it does different things. Without it simply returns a String with the Date, with the new Keyword it logically returns an Object, but it acts like some kind of a String, so if you print it, you get the same, but without the ' ' thingies, but it's still an object that contains functions.

So normally if you return an object, you see all the keys of this object and don't get a simple text. So it's some kind of return value, but return doesn't work with a class object. You can assign keys to a function, but this doesn't work with the new keyword. And you can't define a function and a class with the same name. So does someone know, how it can be called with and without new at the same time and how it only prints a kind of String line out as an object?

Ответить
MAHESH CHARY INDRAKANTI
MAHESH CHARY INDRAKANTI - 26.10.2022 16:06

ty bruu <3

Ответить
MAHESH CHARY INDRAKANTI
MAHESH CHARY INDRAKANTI - 26.10.2022 14:05

Thank you man for sharing this stuff

Ответить
Sonia Blanche
Sonia Blanche - 25.10.2022 02:24

if you're using modules you are automatically in strict mode

Ответить
Butbutmybutt
Butbutmybutt - 24.10.2022 00:48

in classes and js loaded via es modules u don't need use strict, it's active automatically

Ответить
Anas EL HASSANI
Anas EL HASSANI - 23.10.2022 10:37

Worked , thanks a lot!

Ответить
Oscar Knap
Oscar Knap - 20.10.2022 21:19

You can use ESLint to check your code without strict mode

Ответить
Buby // Almahbuby
Buby // Almahbuby - 20.10.2022 17:14

Sloppy 😳

Ответить
cherubin7th
cherubin7th - 19.10.2022 14:50

"strict mode" looks more like "relaxed but less stupid mode".

Ответить
Allan
Allan - 19.10.2022 11:21

WHY DISABLE LINE NUMBERING? MY BRAIN IS BREAKING!

Ответить
Let's Cat
Let's Cat - 19.10.2022 08:58

yeah, working for a company developping ui5 and js apps we always use "strict Mode"

Ответить
offset
offset - 19.10.2022 08:57

lets be kind, not strict

Ответить
Ali
Ali - 19.10.2022 00:01

awesome!

Ответить
ergaikan
ergaikan - 18.10.2022 18:49

The JavaScript bug I'd love to see fixed is it's very existence.

Ответить
EnzoAuditore
EnzoAuditore - 18.10.2022 18:02

Thank you for this

Ответить
Koen Verheyen
Koen Verheyen - 18.10.2022 14:44

That arguments[0] = ...; thingy is quirky as hell!

Ответить
Cry Of Will
Cry Of Will - 18.10.2022 11:50

dude this is so gooood for debuggin and for me that im still learning JS its reaaaaaaaaaally good so i can write better now i feel

Ответить
Noah
Noah - 18.10.2022 11:14

Don't be a simp... unless you're a Web Dev Simp ;)

Ответить
Sciver Zero
Sciver Zero - 17.10.2022 22:13

I stopped using strict mode because my code would never work the way I intended it to in strict mode.

Ответить
CJFX
CJFX - 17.10.2022 17:33

Could you do a tutorial on await / promises / observables (more typescript content possibly?) I've found I've needed to rely on manually adding timeouts / waits using the waituntil npm package but was wondering if there was a better way to do this? Just more DB involved content would be nice I guess

Ответить
Akshil Verma
Akshil Verma - 17.10.2022 08:48

Can you make a video on Shadow dom and how can one manipulate CSS in shadow dom

Ответить
Nathan Banji
Nathan Banji - 17.10.2022 01:37

Hi Web Dev Simplified, I truly love your videos, you are the reason why I originally got into web development. You've taught me so much in the past year and a half, and I was wondering if you could make a tutorial on implementing ads into your website. I've been trying for a while now but I can't seem to get it to work.

Ответить
gasparini zuzzurro
gasparini zuzzurro - 16.10.2022 23:03

Javascript as others 'moderns' languages like python, php is, and remain still bad regardless of every effort to improve it.
(like typescript, flow, coffeescript etc).

Ответить
Henry Corredor
Henry Corredor - 16.10.2022 18:15

Este man como le hace para ser tan inteligente

Ответить
Niksorus
Niksorus - 16.10.2022 17:00

My gosh, JS used to be such a mess 🤣

Ответить
Ankit Shukla
Ankit Shukla - 16.10.2022 16:44

Why don't you make some tutorials in angular.

Ответить
Parlor 311
Parlor 311 - 16.10.2022 16:03

The last one is scary ngl

Ответить
Matjaž Saksida
Matjaž Saksida - 16.10.2022 15:44

I've always wondered what is the purpose of "use strict" in javascript files, but never had the time to give it enough attention or to goggle what is its purpose. Now with this video everything is clear about "use strict" and I will absolutely use it in my future javascript projects. Thank you so much for this detailed explanation with usage examples.

Ответить
thesoftwarestudent
thesoftwarestudent - 16.10.2022 15:06

JavaScript: The Good Parts - is a good read. The behavior of 'this' is one part commented on in that book. Anyone have a timemachine to change this :)

Ответить
christophe anfry
christophe anfry - 16.10.2022 12:34

Adding type=“module” in script tag will also use the defer attribute by default

Ответить
Nibroc Remulb
Nibroc Remulb - 16.10.2022 12:17

“Are you in sloppy mode?” Depends who’s asking 😏

Ответить
Asagi Ai
Asagi Ai - 16.10.2022 11:02

So strict mode is like you have more stricter teacher.

Ответить
Braxx
Braxx - 16.10.2022 09:08

I've been using the strict mode since... well... 2012ish because of a recommendation from another developer. I've read an article online that argued that later ECMA version has it enabled by default. Now, I'm glad that I still put into my code and didn't listen to the article.

Ответить
Outsourcing Institute BD by Shaheb
Outsourcing Institute BD by Shaheb - 16.10.2022 04:56

awesome

Ответить
MaterialKnight
MaterialKnight - 16.10.2022 04:24

After seeing this, I'm even more disappointed in that the ECMA guys had the balls to call this BS behavior "features" of the laguage, and treat their readers in a disgustingly condescending way for not thinking that JS is the masterpiece of design they think it is (it's a steaming piece of crap in its design, not to mention that it was left unattended and wasn't improved in over 10 years).

From section "4.3.2 The Strict Variant of ECMAScript" of the official documentation:

"The ECMAScript Language recognizes the possibility that some users of the language may wish to restrict their usage of some FEATURES available in the language. They might do so in the interests of security, to avoid what THEY CONSIDER to be error-prone FEATURES, to get enhanced error checking, or for other reasons of their choosing. In support of this possibility, ECMAScript defines a strict variant of the language."

Awesome video Kyle! When I see one of your videos about a topic I already know, I always learn something new 😃👍👌

Ответить
Wasis Haryo Sasoko
Wasis Haryo Sasoko - 16.10.2022 01:39

Why not use typescript like a normal person?

Ответить
Oleg Khalidov
Oleg Khalidov - 16.10.2022 01:29

Or "use typescript"

Ответить
Mike Valeriano
Mike Valeriano - 16.10.2022 01:22

FFS, just switch to typescript and don't look back.

Ответить
Miloš Drašković
Miloš Drašković - 16.10.2022 01:03

You deserve dislike for this clickbait :D

Ответить
Berr's Tech
Berr's Tech - 16.10.2022 00:39

Or just use typescript 😅?

Ответить
WIKIN
WIKIN - 16.10.2022 00:35

how to activate hidden typescript

Ответить
Toushif Haque
Toushif Haque - 16.10.2022 00:29

i see a lot of tricky interview questions here

Ответить
Undo
Undo - 15.10.2022 23:53

just use typescript omg

Ответить
Guilherme Rodz
Guilherme Rodz - 15.10.2022 23:43

i might love JS, but brah, this is so bad

Ответить