Here's the most advantage for younger people who like programming; you also get math!
Sure, maybe you don't know any programming language, but if you know the fundementals, or basics, you have yourself a winner. Why? Because computer programming math and thinking logically is exactly what is also used in math. So even if you flunk math, you have the advantage of using your zappy programming knowledge to apply it to mathematics.
Don't believe me? Well, here are some similiarities you are bound to notice in both coding and maths:
Functions in mathematics are very much like the functions in JavaScript
Look at this simple example of function in maths:
f(x) = 3x - 2
And now look at this sample function in JavaScript:
function myfunction {
alert("Hello!");
}
The f(x) is simply a function, holding the unknown variable x. The function myfunction defines a function with the name, "myfunction" in JavaScript. The "=" sign in maths indicate probaly the execution of the function. What the function holds is the duty of the function. It's basically like variables which hold numbers, but a function holds more than one number.
In JavaScript, what we see is that a function is a block of code which executes anything within it each statement. The main difference between the math's function and the js's function is that their means of writing, executing and compiling are different. In math, it's like using a single name for each equation. Similiarly, the function JavaScript is like a name for a code of block. That is why they are similiar.
Variables are the same concept
If you know basic algebra (which I assume you know because you are reading this), you will notice that the variables in math and computer programming use the same concept. Here is a simple linear equation in maths: (working is also provided)
6x + 4 = 4 - 2
6x + 4 = 2
6x = 2 - 4
6x = 2
x = 2/6
x = 1/3
Now look at the following variables in JavaScript:
var x = "This is a string. String is simply text stored in a variable";
var y = 39;
var z = 4.56;
Here's the explanation: in maths, we have found an unknown variable's value by making both of sides in the equation equal. However similiar the JS variables are like math, remember, that the "y = 39;" never means it is equal. No. In JS, the "y = 39;" means the number is assigned to a variable and is never equal to it. That's why I shared the string variable above so you can notice that strings are also not equal to the the other side of the statement, but is assigned to the variable. Simply put in words, the main difference between the two defining of variables is that maths has it as an "equation" while in JavaScript, they are used to assign the data a unique identifier. They may be similiar; but don't try to store text strings in a linear equation!
☟Technazing Facts
Steve Jobs and Bill Gates were both born in the same year: 1955. Even their birth dates are the same which is 24th. However, Steve Jobs was born in 24th February and Bill Gates was born on 24th October.
Maths and programming are logic games
Both maths and coding require logical and critical thinking skills. You have to see the purpose of both in a logical and creative way. Basically, learning the two will be pretty easy once you have good logical thinking. Programming does that to you; it grows your logical side. So if you learn coding, you might find maths a bit easy too because you learned logical thinking skills.