Amit Gujarathi
Giga Sage
Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
11-05-2021
01:44 AM
HI all,
Hi all and we'll come back. So into this tutorial, we'll be looking on one more topic. Okay. This topic is more on a scripting basics, not, or you can say entirely with respect to service, but it's required to get, or to build any kind of application or to try any kind of scripting. Right. This is a must to have kind of skill.
Okay. So today we'll be looking at. Functions and objects. Okay. And how we can use internet service now. Okay. So quite often we need to, we need to form a similar action in many places of the script. Right? For example, we have to so some nice looking message to visitor log log out, or some business logic fee, uh, we have to perform, right.
So for this we venue, we use. So function are the main building blocks for any programming in any programming language. Okay. They allow the code to be called many times without reputations. We have seen a lot of examples of in functions like alert, prom and confirm by record is also one other function.
Okay. But we can create our own functions. Okay. And use it on a repetitive basis. Okay. So today and, uh, the second topic is the, how. You will the object in the function. So whenever we do the object, right. And I got a lot of, a lot of comments and lots of requests from a lot of subscriber okay. That they don't know how to handle the object they are getting from the guide record.
Right. Or they are not aware about the functions of our programming. So today we'll be. On the very basic needs of their functional programming. Okay. So for this , this is my user interface, or you can say on my personal instance, and thanks to the send you this plugin. Now you have good backgrounds, so let's try it in the background scribbling.
So I will give background again, and we will be performing all the actions, all the coding in the background script. If it opens. Just kidding. So I think in time,
I think my internet is quite slow.
Okay.
Oh, yeah. Is it okay, so let's start with the basic definition of function. So I wanted to explain what is. So how can we rewrite the function? For example, I have function that say, for example, if we have a function, that's a creative function. So it started with function. And then the function names, I will give you as a, in, for the function name.
Okay. Then we give drown braces and then curly braces in that you can write your entire business logic. So for now I will simply write, she has.info. And we will give what we will get. I'll get it. Let's give hello ward. So you'll get familiar with the base. You will get to know that the start of any functions, right?
Okay. So level what? This is all of your defined function. Okay. And your function and how to call this function. So you have to simply do, it was in full. That's it, and this is how you call a function. So you first run this now. Okay. So then now put what it will do at this particular statement. It will execute the function and as a part of this function, execution, this statement really get executed.
So that's run the script and now we can see we've got the output. Hello world. Okay. Now, for example, as you can see, these are the basic function. We have this parent is the worst. The use of this parent is so we can pause that attributes. Okay. And we can make this function dynamic based on that attributes.
Hope you like the video . Please like follow subscribe for more such videos.
Regards,
Amit Gujarathi
(Team Technomonk)
- 584 Views
1 Comment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.