Learn JavaScript basic

Stela Capsa
Sep 14, 2021

--

1.Values are piece of data. This are some examples of values in JavaScript.

console.log("beautiful")
console.log(50)

2.This is call declaring a name, we assign the value “kim” to the variable name firstName.

let firstName = "Kim"

if console.log, the value should appear in the browser console.

3.Conventions and rules in JS.

JS doesn’t accept just any names of variables, we can use next format of variables name

Camelcase

  • firstName
  • formTagName

Singular word

  • name
  • verb

Is prohibited in JS variables to start with a number

An error will show the row number where is happening and the name of it, this error is Syntax Error.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response