silly answers will reported,
I am studying javascript,
I want the whole step by step explanation and example of if statement, plz give answer fast.
CORRECT ANWSER WILL MARKED AS BRANALIST.
Answers
Answer:
What is the best way to learn JavaScript?
What is the smartest way for transferring heavy data?
I think the best way to learn JavaScript is by doing stuff. I mean, of course you have to learns the basics (variables, functions...), but if you are already familiar with programming paradigmes it will take you a good morning, if you are not, maybe 2 days...
But knowing JavaScript and knowing how to program in JavaScript are two very different things. So I'm going to show you how I learned JavaScript, and how I went from everything-in-the-index.html vanilla JS to state of the art EcmaScript 6, gulp, unit testing, React/Angular and company.
Well, first thing, I learned JavaScript in school. But we had like a half-day lesson (what is a variable, a function, a condition... the basic). Then the teacher gave us an exercise to do, the "moulinette". Basically a test driven development: 20 exercises, ranking from displaying an alert with a string to implement a Pathfinding algorithm. This specific last one being of course quite impossible for our level. But we went through them, and through need, learn stuff like what was an array, how to access it, what was a loop. And of course, it helps not to look for solution in stack overflow and not to use premade stuff. For instance, an exercise asked to sort an array by alphabetical order. You could use an array.sort() for that, but isn't it more fun to loop through the array and push the result into a new one?
Well, anyway, after this mise-en-bouche, we had our first real exercise: make a 2D game, with a character who can go up, left, right and bottom and cannot go outside a "box". If we did that we had 10/20, but then we could add whatever feature we fancy. Here is what I made