نوشته شده توسط : dotnek

As you know, there are many programming languages that can be used in order to implement various features in a web or application, among all the languages, one of the most popular is JavaScript, many programmers use it because it can eventually be used to make the user interact with the content better which is one of the most important factors in attracting users to your websites , there are several features in this language that you can learn by mastering each of them in the best possible way, which we are going to examine variables and data types in JS.

What is JavaScript?

The abbreviation for this language is JS, which allows you to use it to create dynamic content on the web, which has a very high interaction with the user, also with the help of this language, even very complex features can be easily implemented on the web, and the point that should be mentioned here is that any program written in JavaScript is known as a “script”.JS can be run on both browsers and servers, there are JavaScript engines in various browsers, which are actually embedded by JS scripts and can be used to convert the script into a language that can be recognized by various devices.

JavaScript Variables:

In order to be able to store different amounts of data, you need to get help from it, which in order to master this, we suggest you pay attention to the following example.

<! DOCTYPE html>

<html>

<body>



<h2> JavaScript Variables </h2>



<p> In this example, x, y, and z are variables. </p>



<p id = "demo"> </p>



<script>

var x = 7;

var y = 8;

var z = x + y;

document.getElementById ("demo"). innerHTML =

"The value of z is:" + z;

</script>



</body>

</html>

Let and const:

The case which we have mentioned at the beginning was the only way that have been used in order to store data values until 2015, but now other ways are being used instead, including let and const. 

 

Read more on:https://www.dotnek.com/Blog/Web/learning-types-of-variables-and-data-types-in

link:https://dotnek.mystrikingly.com/

Related link:DotNek Android Development





:: برچسب‌ها: dotnek , seo , site ,
:: بازدید از این مطلب : 49
|
امتیاز مطلب : 0
|
تعداد امتیازدهندگان : 0
|
مجموع امتیاز : 0
تاریخ انتشار : شنبه 16 مرداد 1400 | نظرات ()
مطالب مرتبط با این پست
لیست
می توانید دیدگاه خود را بنویسید


نام
آدرس ایمیل
وب سایت/بلاگ
:) :( ;) :D
;)) :X :? :P
:* =(( :O };-
:B /:) =DD :S
-) :-(( :-| :-))
نظر خصوصی

 کد را وارد نمایید:

آپلود عکس دلخواه: