@vscode: Always learning a new quirk of JavaScript #vscode #developer #techtok #codetok #programming #javascript

Visual Studio Code
Visual Studio Code
Open In TikTok:
Region: US
Friday 14 October 2022 19:52:26 GMT
98447
4603
133
65

Music

Download

Comments

diviini
Divini :
Use TypeScript omg
2022-10-14 20:03:54
161
jimmyisnotgross
Jimmy Gross :
It’s because you’d often combine string values, but you’d never subtract string values, makes no sense. Not that strange/
2022-10-14 20:08:19
86
rob.on.tiktok
Rob :
Does that mean that ‘3’ - - ‘1’ === 4?
2022-10-14 20:52:34
40
umbreon444
umbreon222 :
Reasons why strongly typed languages help in big ways
2022-10-14 21:02:25
27
eightbitkent
Kent :
All the folks yelling typescript forget that linters exist.
2022-10-17 05:45:35
1
daddio799
user1133924202256 :
Yep it called type coercion. Expected behavior
2022-10-15 14:14:32
3
litteraly.captain
only1Captain :
the fact that many people didn't understand made me proud of me😂
2022-10-15 00:30:30
0
void.1971
Void :
this seems like such a bad idea
2022-10-25 09:15:13
0
christosmes23
chris :
Yes because it will subtract the utf codes of chars 51-50=1
2022-10-16 17:45:36
1
tic.et.tac.mian
Tic et Tac :
that's expected, nothing strange here
2022-10-17 21:21:12
1
__sivert
Sivert :
THIS IS WJY TYPESCRIPT OS SUPERIOR AAAAAHH All the people in the comments making fun of TS, HERES YOUR PROOF🥺
2022-10-15 00:26:59
1
jonathantraverso
JonnyTrav :
This concept is called type coercion. You can’t subtract strings onbviously so it assumes you meant #s
2022-11-19 04:32:44
1
elitegentleman_
The Elite Gentleman :
That's why I use proper language like Java and C++...😂😂😂
2022-10-24 00:07:05
1
mudel10
Yoyo :
well you can't really substract strings so it kinda makes sense
2022-10-14 20:27:35
4
melamit.work
melamit.work :
yes
2022-11-03 19:01:49
0
pythonfoundations
🎓Python Foundations🎓 :
Wat
2022-10-15 01:14:33
1
itdobelauradoe
Laura Sofia :
{} - [] = -0 and I never recovered after learning this...
2022-10-19 23:06:21
2
cem.68er
cem :
this isn‘t nothing new tho
2022-10-19 21:35:18
0
turkventi
yusuf :
wait what
2022-10-14 19:58:09
19
voidcatowo
Shadow :
I will never understand people who use JS without ever learning about how type coercion works. That's literally the most basic example of it
2022-10-16 01:20:10
1
fkychin
Dimosthenis M. :
hello can i ask something about javascript?
2022-11-30 19:03:43
0
getucky
GET :UCKY :
node .
2022-10-19 11:18:18
0
matthewsoepic
Matthew :
This is why you use typescript
2022-10-16 08:26:14
1
iange38
iange38 :
This video teaches me a lot, im new to js
2022-10-19 16:51:37
0
misterzeng
msezng :
const a : string = “3”; const b : string = “2”; a - b will return type error
2022-10-15 02:36:06
0
To see more videos from user @vscode, please go to the Tikwm homepage.

Other Videos


About