vendredi 30 novembre 2018

How to Return a Random Number in an HTTP Call in Firebase Cloud Functions?

My Code is this but it doesnt work;

const functions = require('firebase-functions');

exports.randomNumber = functions.https.onRequest((request, response) => {

return Math.floor(Math.random() * 20)

});




Aucun commentaire:

Enregistrer un commentaire