Into to JS
React JS is a framework of Java Script. Before learning React you have to learn Java Script.
Brief look at Java Script
Learn first HTML first.
Let us look into Java Script:
Variables and Datatypes
Declaring a variable:
Note that the semi colon is optional.
We declare a variable with the var keyword. As in C, C++,Java.
To declare a in Java we do following
int is data type.
age is variable name.
14 is variable value.
In Java script we do not have to write the data type.
Here two examples in Java:
System.out.println(sum); //outputs 15
In Java; is mandatory.
We want do this in Java Script.(Example 1 in Java Script).That would be :
This above line executes the Java Script. So how we see the out put.
One is in a web page:
This example will be dealing with string.
String str=” Welcome to Techkhala”;
In JS we do this like this. But before we go further, a thing about declaration of variable to be said.
Instead of using var keyword there is using of let keyword. This was introduced in 2015. The variables that were declared with let cannot be redeclared.
let carn1 = “Toyota”; // Double quotes;
let carn2 = ‘Audi’;
You can either use single or Double quotes.
let lenghtstr=carn2.length // length of string 2.(carn2)
We talk about the DOM model. This the way objects in a web document is arranged.
The DOM model is similar like the Visual Studio ‘s C# or VB uses.
In Java Script , Accessing elements :
To use this ID, the HTML element must have a ID attribute.
<div id=”dvtechkhala”>Get TechKhala by ID</div>
const techID = document.getElementById(‘dvtechkhala);
The id is stored in a constant declared as techID.
After that we could change the properties ,say color.
techID.style.border = ‘2px solid green’;
Thanks to Digital Ocean for the above and you can read the rest here. These guys are a standard to follow in the web.
The thing is along with JS you have to know following :
Yes there is Udemy. Ok ,Techkhala want to make money from blogs but as a developer I do sympathize with programmers who just started and do not have much money.
I never thought of teaching until now, I used do that once but not in IT. That is physically tutor few students. That is why TekTrain was created. If you want basic programming online classes pls write to email@example.com.
The best place to learn about HTML and above would be as a course
Educative ,it is free.
There are others but you have to look for them.