async function join(val) {
            if (val === -1) {
                val = $("#bet").val() * 1e18;
            }
            c4.join({value: val}, function (error, result) {
                if (!error) {
                    //console.log(result);
                }
                else
                    console.error(error);
            });
        }
/** Try to join the game with a specific bet.
         * val of -1 will read the text field on the website and use that value
         * @param val: has to be -1 or a positive integer. If positive it must be in WEI!
         */
Try to join the game with a specific bet.
val of -1 will read the text field on the website and use that value
@param val: has to be -1 or a positive integer. If positive it must be in WEI!
Try to join the game with a specific bet . val of - 1 will read the text field on the website and use that value @param val : has to be - 1 or a positive integer . If positive it must be in WEI!
async function join(val) {
            if (val === -1) {
                val = $("#bet").val() * 1e18;
            }
            c4.join({value: val}, function (error, result) {
                if (!error) {
                }
                else
                    console.error(error);
            });
        }
async function join ( val ) { if ( val === - 1 ) { val = $ ( "#bet" ) . val ( ) * 1e18 ; } c4 . join ( { value : val } , function ( error , result ) { if ( ! error ) { } else console . error ( error ) ; } ) ; }
Try to join the game with a specific bet.
Try to join the game with a specific bet .
//console.log(result);