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

These days, numbers and mathematics are being used in daily tasks such as shopping, sport, etc., in fact, these cases have formed a large part of our lives these days, you also know that computers, websites and various programs play an important role in people’s lives, so you can see the reason for the obsession with math and websites as well as various programs, ever since people were able to perform their mathematics calculations through computers as well as various websites, a great change has taken place in our lives, and we have seen how fast we can solve a complex problem.One of the most popular programming languages ​​is JavaScript, which if you have mastered it, you would be also able to do mathematical calculations with the help of numbers in it, in this article we will discuss it more but before that we need to give a brief explanation of the JavaScript programming language.

What is JavaScript?

It is one of the programming languages ​​that can be used for clean coding and with the help of which complex features can be implemented in a web page.

JavaScript Math Object:

You need to learn this section in order to do different calculations, in this case, the Math object is static, now in order to understand it better, consider the following example.

<! DOCTYPE html>
<html>
<body>

<h2> JavaScript Math.PI </h2>

<p> Math.PI returns the ratio of a circle's circumference to its diameter: </p>

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

<script>
document.getElementById ("demo"). innerHTML = Math.PI;
</script>

</body>
</html>

JavaScript Math Constants:

There are 8 math constants in this language that can be used, which are as follows. 

 

Read more on:https://www.dotnek.com/Blog/Web/teaching-math-object-in-javascript

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

Related link:DotNek IOS Vývoj





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


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

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

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