r/learnprogramming • u/TheIceCreamBoyy • 24d ago
how to learn JavaScript? Exam on friday
Our ”web programming” Uni course started 2 weeks ago and we already have our first exam on friday. First course was about Python, so the syntax is quite familiar, but still weird and there’s so many new things like ”$ { } ;” and ofcourse the syntax itself.
How could I learn the basics in… 4 days? The exam will be about theory (multiple choice questions) and then a few function coding tasks in the end.
0
Upvotes
4
u/StewedAngelSkins 24d ago
try asking the professor who you are literally paying to teach you. you're spending all this time and money on a university education and yet for some reason you're expecting to get better answers on reddit?
4
u/karanpargal 24d ago
Stick to the two weeks of lecture material for Friday. For multiple choice, predict lecture snippets’ output, run them, and work out why any predictions were wrong. For coding, rewrite Python exercises in JavaScript without solutions, using concepts covered in class. Pay attention to equality and type conversion, where Python habits can mislead you.
${expression}inserts a value into a backtick-delimited string, called a template literal.2
u/RajjSinghh 24d ago
Try writing as much Javascript as you can and hope some of it sticks
2
u/political_noodle 24d ago
The ancients (like me) would teach ourselves by reading something like this: https://developer.mozilla.org/en-US/docs/Web/JavaScript
If you stick with web programming, mdn is the most consistently solid resource for all things JavaScript that I've ever seen.
Go forth and cram!
1
u/Available_Safe1818 24d ago
google for javascript cheat sheets
1
u/Mediocre-Pumpkin6522 23d ago
So the exam will be on material that wasn't covered in the last two weeks?
1
u/jacksonanna373 19d ago
You're not learning JavaScript in four days; you're learning the slice your exam can cover. Rebuild every lecture example from memory, then drill the weird bits: ===, truthiness, and `${...}` inside backticks.
0
u/Pleasant-Swordfish24 22d ago
Use the documentations instead of ai. Learn specific topics instead of learning all of them, while you cant explain single one. After reading documentations use any ai and give it prompt to test you. Do it 2-3 times and you are ready. (i did same)
0
u/[deleted] 24d ago
[deleted] — view deleted comment