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

You definitely know that programming can provide you with a good income, and in addition to the good income you can have from this way, it also allows you to not get tired while doing work and continue to work with interest, due to the fact that there is so much variety in this world and if you are interested in it, you can continue your journey with pleasure.Programmers need to master different programming languages, one of the most important ones they need to master is JavaScript which we are going to continue to explore its various features, but before that it is necessary to explain the language briefly.

What is JavaScript web programming language?

It is a language that is used to implement a variety of complex features in web pages and causes complex applications to run on web pages which encourages the user to visit those pages and also due to the high interaction that the user can have with the page with the help of this language, they will gain a positive user experience, so that you can attract lots of users to your website day by day.

JavaScript Object Methods:

Objects in JavaScript are a set of key-value pairs, these values can include specifications and methods, and in addition, it may include other types of data in this language, which we are going to examine further in the following, here consider the following example.

// Initialize an object with properties and methods
const job = job
position: 'cashier',
type: 'hourly',
isAvailable: true,
showDetails () {
const accepting = this.isAvailable? 'is accepting applications': "is not currently accepting applications";

console.log (`The $ {this.position} position is $ {this.type} and $ {accepting} .`);
}
};

// Use Object.create to pass properties
const barista = Object.create (job);

barista.position = "barista";
barista.showDetails ();

This:

When defining a function “this” is pointing to the owner of the function, so that you can better understand the example below. 

 

Read more on:https://www.dotnek.com/Blog/Web/teaching-method-objects-properties-and-events

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

Related link:DotNek Vývoj hier





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


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

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

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