Community » Forum » Feedback » Developer Community

First ... 22 23 24 25 26 ... Last
spacetinker   VIP
Mogul
USD 129 937.45
hey in functions is the parentheses at the end for putting in values so if

<button onclick="function(5)>

function function(x){
}

would the x value in the function be 5?
masterplayer833   VIP
Mogul
USD 402 085.79
That would not work as function is a token keyword in js so you can not name your function function as it would be taking the name of something in js. The correct form would be:

function myFunction(x){
//You Need to put something here, I.e
return x+8;
}
Now it would return x+ 8 , you can make return return nearly anytung.
masterplayer833   VIP
Mogul
USD 402 085.79
You also wouldnt see anything on screen, as it would execute the function in the background. It would return something when not expecting a return because executed from a button.
spacetinker   VIP
Mogul
USD 129 937.45
oh i was just using function for a placeholder name
though that does answer my question, thanks!
masterplayer833   VIP
Mogul
USD 402 085.79
We Hit 1000 views!
masterplayer833   VIP
Mogul
USD 402 085.79
I am currentlly learning deno, typescript, flutter, dart, and c++, oh and french. These are the current languages I am learning.
Eram   VIP
Millionaire
USD 1 365 338.58
I'm currently learning react.js
masterplayer833   VIP
Mogul
USD 402 085.79
I try to stay away from dynamic as they are difficult to host. I prefer flutter, I recently discovered it.
masterplayer833   VIP
Mogul
USD 402 085.79
For a backend server I do deno type script with express.
Eram   VIP
Millionaire
USD 1 365 338.58
Flutter is good-It's fast
First ... 22 23 24 25 26 ... Last