We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09b254a commit 63a4e6bCopy full SHA for 63a4e6b
src/lambda/hello.js
@@ -1,8 +1,10 @@
1
// this uses the callback syntax, however, we encourage you to try the async/await syntax shown in async-dadjoke.js
2
export function handler(event, context, callback) {
3
console.log('queryStringParameters', event.queryStringParameters)
4
+ let x = (Math.random(1,100) *100);
5
+ myMsg = 'Hello World, Your number is ' + x;
6
callback(null, {
7
statusCode: 200,
- body: JSON.stringify({ msg: 'Hello, World!' }),
8
+ body: JSON.stringify({ msg: myMsg }),
9
})
10
}
0 commit comments