JavaScript for beginners
What is JavaScript?
JavaScript is a coding program used by many professionals and websites. It is very useful for beginners learning to code.
Types of coding in JavaScript
There are some key coding types used in java:
Get N K’s stories in your inbox
Join Medium for free to get updates from this writer.
Variable: A variable is a “named storage” for data. We can use variables to store goodies, visitors, and other data. To create a variable in JavaScript, use the ‘let’ keyword.
Function: A function in JavaScript is similar to a procedure — a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and return an output where there is some obvious relationship between the input and the output.
Loop: A loop is a programming tool that is used to repeat a set of instructions. Iterate is a generic term that means “to repeat” in the context of loops. A loop will continue to iterate until a specified condition, commonly known as a stopping condition, is met.
Condition: Conditional statements control behavior in JavaScript and determine whether or not pieces of code can run. There are multiple different types of conditionals in JavaScript including: “If” statements: where if a condition is true it is used to specify execution for a block of code.
Simple example







