i will learn javascript, i don't know anything about it as I always codes in c/c++. but today is the day I must decend, so that I can get a job.
starting with variables, wot the actual fuck broosssss. it's even worse than python.
there are 3 diff ways of initializing variables, that are var, let, and const.
why 3, const is understandable, but var and let?????
is this how you webjeet codes in????
and what's up with this comparison operators??? "==="??? why not just "=="
i'm already loosing my mind. i hope typescript may have fixed all these bullshits
okay so here is a plan, i will go through mdn, and i continue to learn, i will share all my learning here so that I don't loose my motivation of learning this language.
one more interesting thing is unlike other language that has 2 types for numbers, one int and other is float. jabhascript doesn't have any of those. instead it has one type call "Number" that includes everything including decimal, whole num, and integers
undefined is not undeclared.
undefined is a premitive types where the values if absent. for instances
let fuckoff;
console.log(fuckoff) // this will be undefined
console.log(fuckoffhundredtimes) // this is undeclared.
also one thing more i noticed is that upon running that code with "fuckoffhunderdtimes" it gives me error says "not defined". it's the worst part. like dude how would i know if i declared it or not