Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
javascript questions - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
2y ago
•
13 replies
snxxwyy
javascript questions
Hey
, i have a couple questions about js
,
1
)
what
's the logic behind putting conditions in brackets in if statements and loops
? e
.g
.
if
(a
===
b) {
...
}
if
(a
===
b) {
...
}
2
)
when using
Number.parseInt
Number.parseInt
, let
's say to get the result
10
10
out of the string
"10aaa"
"10aaa"
, why is the radix recommended to be 10 specifically
?
3
)
what are the benefits of using a ternary operator rather than an if statement
? and the benefits of using an if statement over a ternary operator
?
I
'd appreciate any tips
. Thanks in advance
.
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
javascript questions
KP-C
Kevin Powell - Community / front-end
2y ago
Javascript questions
KP-C
Kevin Powell - Community / front-end
2y ago
javascript questions
KP-C
Kevin Powell - Community / front-end
2y ago
javascript questions
KP-C
Kevin Powell - Community / front-end
2y ago