Skip to main content

Command Palette

Search for a command to run...

Getting Started With JavaScript

Updated
1 min read
Getting Started With JavaScript
S

A Full-stack Developer based in Nairobi Kenya , with a focus on creating robust and user friendly web applications. With strong foundation in both front-end and backend development, I specialize in building responsive and scalable solutions that deliver exceptional user experiences.

JavaScript types of Variables

  1. Numericals - These are integers, whole numbers and floats for example — 1-n, 1.8

  2. Character strings - These are strings, they are often accompanied by double and single quotes.

  3. Booleans - These are true or false statements. If the statement is TRUE we perform the action otherwise the latter gets executed and the reverse is true.

  4. Arrays - This is a block of either numerical values or character strings an example is [1, “Salt Lake is blue”, 4]. Here we can grab data from this array by just using the index method which starts from 0, where 1 is at index 0 and “Salt Lake is blue” is at index 1

  5. Objects - They are more of arrays, but in an object as opposed to arrays where we get the value of an item by calling it index, here we use the key or the prop..(property) { age:21, desc: “Salt Lake is black”, no:2 } so here we will call the objects key to get its value for example — age = 21 and so forth (This is called JSON or JavaScript Object Notation)