Learn JavaScript on the Now Platform: Lesson 34 - Passing objects to functions

preview_player
Показать описание
Lesson 34 demonstrates how to combine the power of objects with functions to go beyond basic data types being pass in and out of functions.

Рекомендации по теме
Комментарии
Автор

This example is way easier for me than the one in the previous video :D.
It's mush simpler as an introduction to the classes and prototypes terms.
Thank you, Chuck for your efforts. I'm new the JavaScript world .. so I'm struggling a little bit here :D

I just passed my CSA certificate a few months ago and I'm looking forward to the next step. That's why I'm here.

It's also worth mentioning that I'm using a couple of things along with watching your videos.

- ServiceNow documentation
- ChatGpt to get more information about a certain code. I usually ask it to explain the parts I don't get of the code.

amirmohamed
Автор

can you please show us how to create classes in servicenow, mainly i am looking for location where i can define my own class

yogeshvaidya
Автор

Why it's beneficial to define class and to instantiate it (item class and myItem instance in the video) vs defining a simple function not in class (debugObject in the video)?
So the final line would not be:
myItem.debugObject(myObj); //debugObject() is part of a class
but
debugObject(myObj); //debugObject() is not part of any class

krystekczystek
join shbcf.ru