Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

language c or js is better for beginners in programming

+3 votes
asked Apr 30, 2025 by muhammed zayan (220 points)

1 Answer

+1 vote
answered May 1, 2025 by Peter Minarik (101,340 points)
edited May 2, 2025 by Peter Minarik
It comes down to personal preference and taste.

C is relatively simple, with few complicated functions in the standard libraries. The language is strictly typed, and you have to follow the rules. You can look at the code and argue about what it's doing without actually running it.

However, you have to pay attention to memory management, watch your pointers, and clean up after yourself.

JavaScript is more modern and has more features, but it can also be very loose with the types, which makes the code hard to argue about just by reading it, as it's not always clear what the type of your variables is at any given time. It has managed memory (Garbage Collection).
commented May 18, 2025 by definitelynotbob3 (100 points)
My first coding language was C. the basics are simple, but it does get harder the more advanced things you are trying to code, but it is not used very widely anymore. JavaScript, on the other hand, is used everywhere in web development, so if you're looking for a language that could get you a job in the future, i think JS is better.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...