- Blind mode tutorial
lichess.org
Donate

Java Script

Web Scripting language

Java Script is mainly used for designing web servers or websites. In fact , Our chess server Lichess is coded using Java Script. Java Script is a programming languages which has lot of difference as compared to Java ,another programming language.
JavaScript is a high-level, often just-in-time compiled language that conforms to the ECMAScript standard.[14] It has dynamic typing, prototype-based object-orientation, and first-class functions. It is multi-paradigm, supporting event-driven, functional, and imperative programming styles. It has application programming interfaces (APIs) for working with text, dates, regular expressions, standard data structures, and the Document Object Model (DOM).

Popular Programming languages for designing websites-

  1. HTML to define the content of web pages Expansions:
  2. CSS to specify the layout of web pages HTML - Hyper Text Markup Language
  3. JavaScript to program the behavior of web pages CSS - Cascading Style Sheets

Integrated Development Environment (IDE) for Java Script-

  • Vanilla
  • Visual Studio Code
  • Webstorm
  • Atom
  • Brackets.
    Komodo Edit.
  • Sublime Text.

There are two types of comments in JavaScript:

  1. Single line comment
  2. Multi line comments

JavaScript single line comment

For single line comment in JavaScript, we use double slash characters (//) before the text/code. The code/text written after the double slash (//) will be ignored by the interpreter.

JavaScript multi line comment

Multi-line comments can be placed between /* and */. The comment starts with /* and terminates with */. We can place any number of lines between these comment characters.

Ways to Declare a JavaScript Variable:

  • Using var
  • Using let
  • Using const

Thank You.