Computer Science, asked by KamalDhaliwal32711, 9 months ago

What is base data type of string variables?

Answers

Answered by manojrai6165
0

A value in JavaScript is always of a certain type. For example, a string or a number.

There are eight basic data types in JavaScript. Here, we’ll cover them in general and in the next chapters we’ll talk about each of them in detail.

We can put any type in a variable. For example, a variable can at one moment be a string and then store a number:

// no error

let message = "hello";

message = 123456;

Programming languages that allow such things, such as JavaScript, are called “dynamically typed”, meaning that there exist data types, but variables are not bound to any of them.

Number

let n = 123;

n = 12.345;

The number type represents both integer and floating point numbers.

There are many operations for numbers, e.g. multiplication *, division /, addition +, subtraction -, and so on.

Hope this answer helps you in your studies!!!

Answered by ubaniukomanneoma
0

Answer:

Javascript

Explanation:

Similar questions