DEV Community

Cover image for JAVA SCRIPT
Vinoth Kumar
Vinoth Kumar

Posted on • Edited on

JAVA SCRIPT

JAVA SCRIPT : is a powerful and flexible programming language for the web that is widely used to make websites interactive and dynamic. JavaScript can also able to change or update HTML and CSS dynamically.

  1. Interpreted language: Code is executed line by line.
  2. Dynamically typed: Variable types are determined at runtime.
  3. Single-threaded: Executes one task at a time.

CODE :

<html>
<head></head>
<body>
    <h1>Check the console for the message!</h1>
    <script>
        console.log("Hello, World!");
    </script>
</body>
</html>
Enter fullscreen mode Exit fullscreen mode
  1. Client-Side Scripting: JavaScript runs on the user's browser, so it has a faster response time without needing to communicate with the server .
  2. Versatile: Can be used for a wide range of tasks, from simple calculations to complex server-side applications.
  3. Event-Driven: Responds to user actions (clicks, keystrokes) in real-time.
  4. Asynchronous: It can handle tasks like fetching data from servers without freezing the user interface.
  5. Rich Ecosystem: There are numerous libraries and frameworks built on JavaScript, such as React , Angular , and Vue.js, which make development faster and more efficient.

DATA TYPES : Define what kind of values a variable can hold and how those values behave in a program. They determine how data is stored in memory and how operations like comparison, calculation, and conversion work.

PRIMITIVE : Datatypes represent single values and are immutable.

  1. Number.
  2. String.
  3. Boolean.
  4. Undefined.
  5. Null.
  6. Symbol..
  7. BigInt.

NON-PRIMITIVE : are objects and can store collections of data or more complex entities.

  1. Object.
  2. Array.
  3. Function.

ASCII : is a character encoding standard that has been a foundational element in computing for decades. It is used to define characters in a computer. There is a huge table of ASCII values. To print the values in JavaScript In this post, we print the ASCII code of a specific character.

COMPILER : is a software that typically takes a high level language (Like C++ and Java) code as input and converts the input to a lower level language at once. It lists all the errors if the input code does not follow the rules of its language. This process is much faster than interpreter but it becomes difficult to debug all the errors together in a program.

IDENTIFIER : identifiers are the names used to identify variables, functions, arrays, structures, or any other user-defined items. It is a name that uniquely identifies a program element and can be used to refer to it later in the program.

Top comments (0)