+ 3

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

18th Dec 2019, 11:48 AM
monkey
monkey - avatar
40 Respostas
+ 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
18th Dec 2019, 12:26 PM
HNNX 🐿
HNNX 🐿 - avatar
+ 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...
19th Dec 2019, 12:14 AM
Stonny
Stonny - avatar
+ 6
Look at examples and start practicing writing code.
19th Dec 2019, 2:51 AM
Sonic
Sonic - avatar
+ 5
I Am Nothing 😞 don't spam.
19th Dec 2019, 7:00 AM
Sonic
Sonic - avatar
+ 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 🙏🏾
20th Dec 2019, 5:38 AM
Alfred Juma
Alfred Juma - avatar
+ 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.
19th Dec 2019, 12:39 AM
Dinesh Bala
Dinesh Bala - avatar
+ 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. 😉
20th Dec 2019, 9:16 AM
David Carroll
David Carroll - avatar
+ 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.
20th Dec 2019, 10:28 AM
Sonic
Sonic - avatar
+ 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 ?
18th Dec 2019, 12:07 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 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.
19th Dec 2019, 12:08 AM
Crystal.kerosene
Crystal.kerosene - avatar
+ 3
thanks a ton for all of your suggestions, i did not expect this much from you guys, thanks 👌
19th Dec 2019, 8:46 PM
monkey
monkey - avatar
+ 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.
20th Dec 2019, 8:12 AM
A͢J
A͢J - avatar
+ 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...)
20th Dec 2019, 9:04 AM
David Carroll
David Carroll - avatar
+ 2
monkey then how can you not know how to write in JavaScript ?
18th Dec 2019, 12:14 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 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
19th Dec 2019, 12:39 AM
monkey
monkey - avatar
+ 2
Sonic , that would be really cool if it existed!
20th Dec 2019, 11:29 AM
monkey
monkey - avatar
+ 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 ;)
18th Dec 2019, 8:45 PM
Sidik Faha
Sidik Faha - avatar
+ 1
thanks!
18th Dec 2019, 8:48 PM
monkey
monkey - avatar
+ 1
Rewrite and better simple programs while thinking about what they do and how they can be improved!
19th Dec 2019, 6:32 AM
Oceanlight
Oceanlight - avatar
+ 1
means ?
19th Dec 2019, 7:00 AM
ıllıllı JᎾᏦᎬᏒ ıllıllı
ıllıllı JᎾᏦᎬᏒ ıllıllı - avatar