Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Memeamphetamine I literally have a compiling app on my phone, so I can write code without needing to be at home.
-
@Nifty I was 99.99% sure Javascript is interpreted (which it is), that's what got me confused lol
-
Why not get on the ES6 train? Start early and bask in the magic!
const userName = "Nifty"
console.log(userName==="Nifty"?
`Welcome ${userName}`:
"You are not Nifty!") -
@Nifty es6 is a JavaScript standard. He's just trying to feel smart by throwing code at you that looks complicated but does almost the same thing.
-
The tertiary operator is not an ES6 feature! I think it's ES5. Nice example anyway.
-
@AlgoRythm Who's trying to make themselves "look smart"? This is just how I would normally write code. Whether this is "smart" or not, I'm not sure, because that's pretty ill-defined.
Related Rants
I can actually write my own, simple code, I'm not very flexible but I actually get JS now.
undefined
mobile compiler
learning
js
code