Artificial intelligent assistant

JavaScriptでawaitが効かない。 Promise `Promise { <pending> }` `await stripe.paymentIntents.create({` `paymentIntent` Promise await? await? import Stripe from 'stripe' const stripe = new Stripe('sk_test_09l3shTSTKHYCzzZZsiLl2vA', { apiVersion: '2020-08-27' }) async function test() { const paymentIntent = await stripe.paymentIntents.create({ amount: 1099, currency: 'usd', // Verify your integration in this guide by including this parameter metadata: { integration_check: 'accept_a_payment' }, }) return paymentIntent } const result = test() console.log(result) ### await import fetch from 'node-fetch' async function getGithub() { try { const res = await fetch(' return res } catch (err) { console.log(`repofetch${err}`) return null } } const result = getGithub() console.log(result)

`stripe.paymentIntents.create``test`
`async``test``paymentIntent`Promise
`await``async`
`then`



test().then(result => { console.log(result); } );

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 4c4d0a7d9d74f84f92ea2f8d66cd78c3