Community » Forum » Feedback » Developer Community

First ... 22 23 24 25 26 ... Last
spacetinker   VIP
Businessman
USD 92 356.08
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 345 902.35
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 345 902.35
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
Businessman
USD 92 356.08
oh i was just using function for a placeholder name
though that does answer my question, thanks!
masterplayer833   VIP
Mogul
USD 345 902.35
We Hit 1000 views!
masterplayer833   VIP
Mogul
USD 345 902.35
I am currentlly learning deno, typescript, flutter, dart, and c++, oh and french. These are the current languages I am learning.
Eram   VIP
Tycoon
USD 771 135.80
I'm currently learning react.js
masterplayer833   VIP
Mogul
USD 345 902.35
I try to stay away from dynamic as they are difficult to host. I prefer flutter, I recently discovered it.
masterplayer833   VIP
Mogul
USD 345 902.35
For a backend server I do deno type script with express.
Eram   VIP
Tycoon
USD 771 135.80
Flutter is good-It's fast
First ... 22 23 24 25 26 ... Last