I know how to read some JavaScript, but don’t know how to write it, any suggestions? | SoloLearn: Learn to code for FREE!

+3

I know how to read some JavaScript, but don’t know how to write it, any suggestions?

12/18/2019 11:48:11 AM

monkey

42 Answers

New Answer

+18

Simple - write more. It's same as playing a guitar, you won't learn by reading books about it. But if you practice / write js code it'll become second nature. Reading and tutorials are just to get you started, you will improve much more if you just start your small project and work on it

+8

A soccer manager once said, the best way to attack is to defend. So in JS, the best way to learn is to try as much as possible to create and accomplish a project. Projects like - birthday calculator, color generator, quiz programs...

+6

Look at examples and start practicing writing code.

+5

I Am Nothing 😞 don't spam.

+5

Start from the beginning, and make sure you practise each and everything you study, all from the beginning. To make your work easier, go inline with some html and you will be where you want. Happy coding 😉 Keep coding 🙏🏾

+4

It all depends upon how much you practice and give time to writing code. Work on your own ideas, rather than seeing other's code. You'll gradually improve your coding skills.

+4

monkey Therefore, it will be easier to read code vs writing it as you are still training your brain to think imperatively, following state changes in variables, and understanding how control flow is affected. Writing code, first, requires recalling syntax from memory. That's the easy part. The harder part is knowing how to apply that syntax to manipulate variable state to control logic flow, inputs, and outputs. It's something people simply need to practice daily until it becomes natural for them. I recommend doing code katas on CodeWars.com. It's well organized, gamified, and has a massive community to see other ways to solving the same code challenges. Keep practicing and trust you will eventually develop an intuition for these many new concepts. 😉

+4

Maybe one day there will be a Google Translate for English to Javascript or Requirements to Code bots. I think auto code generation is already a thing in limited domains. If they exist you don't need to write JS at all! But I am getting off topic here.

+3

What do you mean ? Do you mean that you don't know what application to write javascript in ? Or do you mean you don't know the syntax and don't know algorithms ?

+3

i understand what you mean, I went through the same. Try looking up functional and object oriented javascript programming. It will teach you how to program your JS code. Also practice. As in duplicate a tutorial. One of my favorite online teachers is Colt Steele. You can find his courses on Udemy.

+3

thanks a ton for all of your suggestions, i did not expect this much from you guys, thanks 👌

+3

Взломщик No that was created by other person not by Awais Khan. monkey You can write in one sentence. If you can read. You can write also. I never heard that who can read anything can't write. You should change your question. People are getting confused. You can write like I don't know how to write code in JavaScript or how to make code in JavaScript.

+3

monkey As an English speaking American, I remember experiencing something similar when learning Japanese in college. At the time, it was much easier for me to read and hear Japanese than it was for me to write or speak the words. The challenge with learning to write code versus read code for many beginners is not realizing just how many different things they're really learning all at once. You may not be aware that you're learning much, much more than Javascript as a language. For experienced software developers, learning the core syntax of any given programming language is relatively easy to pick up. It will take a bit more effort to become familiar with the many libraries and frameworks available for the language being learned. Beginners have the added challenge of learning how to think imperatively, abstractly, and logically. They will need to learn about design patterns, algorithmic thinking, variables, functions, control statements, looping constructs, OOP, etc. (continued...)

+2

monkey then how can you not know how to write in JavaScript ?

+2

tysm for the suggestions, im going to try “functional and object oriented javascript programming. and maybe throw in a really simple project, but for now im going with your suggestion, Crystal.kerosene

+2

Sonic , that would be really cool if it existed!

+1

monkey if I'm being honest this is a ridiculous question. How can someone answer it ? You have to study the language, and then you'll be able to write code with it. Also, you didn't even say where you have the problem exactly. I'm not answering this anymore. Do you just expect people here to teach you how to assign values to variables ? or create functions ? No one is going to suggest any different answer, it's all about testing and practicing.

+1

For the first time, you can't escape from reading. But after you got basic notions, you just need tutorials. By writing frequently js codes you shall want to release somethings and with the time, you will become a guru trust me ;)

+1

thanks!

+1

Rewrite and better simple programs while thinking about what they do and how they can be improved!