Skip to content

Commit 63a4e6b

Browse files
authored
Update hello.js
1 parent 09b254a commit 63a4e6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lambda/hello.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// this uses the callback syntax, however, we encourage you to try the async/await syntax shown in async-dadjoke.js
22
export function handler(event, context, callback) {
33
console.log('queryStringParameters', event.queryStringParameters)
4+
let x = (Math.random(1,100) *100);
5+
myMsg = 'Hello World, Your number is ' + x;
46
callback(null, {
57
statusCode: 200,
6-
body: JSON.stringify({ msg: 'Hello, World!' }),
8+
body: JSON.stringify({ msg: myMsg }),
79
})
810
}

0 commit comments

Comments
 (0)