top of page

Simple Return-Function

Count-UP
MULTIPLICATION
Count-DOWN

Simple Return-Function

Here you will find 3 different RETURN-FUNCTIONS, which returns different results.

COUNTING-UP & DOWN

and multiplication

CODE

CLOSE.png

$w.onReady(function () {

  //TODO: write your page related code here...

 

});

 

export function button1_click(event) {$w('#TXToutput').text = xxx(Number($w('#input1').value), Number($w('#input2').value)).toString()}

 

function xxx(p1, p2) {

  return p1 * p2;

}


 

var COUNTER = 0

function count_up () {

  

  COUNTER = COUNTER+1

  console.log(COUNTER)

  return COUNTER

}

 

var COUNTER2 = 10

function count_down () {

  

  COUNTER2 = COUNTER2-1

  console.log(COUNTER2)

  return COUNTER2

}


 

export function BTNcountup_click(event) {

  let myNewButtonLabel = count_up()

  $w('#BTNcountup').label = myNewButtonLabel.toString()

}

 

export function BTNcountdown_click(event) {

    let myNewButtonLabel = count_down()

    $w('#BTNcountdown').label = myNewButtonLabel.toString()

}

Comment-Box

CLOSE.png

Version-1.0

Under_Construction.png

Leave a comment. . .

Arrow.png

General-Settings

ON                 OFF

Show Text-Length

ON                 OFF

max. Text-Length

ON                 OFF

Show Key-Press

ON                 OFF

Show Key-Code

ON                 OFF

Show Total-Count

Character-limit

Load default settings
Save
lestherg-esilverconnect 2:52:59 AM
8/20/2022
s18376 1:07:58 AM

asdas

1/20/2022
s18376 1:03:31 AM

asdas

1/20/2022
arthurvalatin 00:15:21

he he heeeeeeeeeee!

30/12/2020
arthurvalatin 00:15:03

undefinedha ha haaaaaaaaaaa!undefined

30/12/2020
arthurvalatin 00:14:48

My little joke!

30/12/2020
arthurvalatin 00:14:14

really real

30/12/2020
o0oelys 17:55:55

real

23/09/2020
russian-dima 18:49:20

123231

2.9.2020
russian-dima 18:49:17

213213

2.9.2020
russian-dima 17:56:10

123123123

2.9.2020
russian-dima 18:48:04
31.8.2020
Page 1 of 1
Design
Settings
About
CLOSE.png
Leave a comment, or start a chat.

Post-Comment

- - -

Pressed-Key

- - -

Key-Code

Text-Length

- - -

max. Text-Length

- - -

Number of Comments

- - -

designed & developed by russian-dima

Write a comment
bottom of page