Title: Convert prompt inputs to numbers with unary plus by Lk-ux · Pull Request #3977 · javascript-tutorial/en.javascript.info · GitHub
Open Graph Title: Convert prompt inputs to numbers with unary plus by Lk-ux · Pull Request #3977 · javascript-tutorial/en.javascript.info
X Title: Convert prompt inputs to numbers with unary plus by Lk-ux · Pull Request #3977 · javascript-tutorial/en.javascript.info
Description: The task description says the function should take natural numbers only, but prompt() returns String, which we pass to pow(). It accidentally works because we use *= operator which performs implicit conversion. But it is best to convert explicitly to improve code readability and align better with the task requirement.
Open Graph Description: The task description says the function should take natural numbers only, but prompt() returns String, which we pass to pow(). It accidentally works because we use *= operator which performs implici...
X Description: The task description says the function should take natural numbers only, but prompt() returns String, which we pass to pow(). It accidentally works because we use *= operator which performs implici...
Opengraph URL: https://github.com/javascript-tutorial/en.javascript.info/pull/3977
X: @github
Domain: www.github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8a915af0-c06b-4efd-0cb8-f3f86ca66682 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A46A:1F85D0:3910CB:50B776:6A59F8EE |
| html-safe-nonce | 46da4c7ff53f8dcf1ddbcdf80a6a873023dcf7b1bd19b48d97624ae6aec8a0c2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDZBOjFGODVEMDozOTEwQ0I6NTBCNzc2OjZBNTlGOEVFIiwidmlzaXRvcl9pZCI6IjU4OTIwMjA1ODU4MDc2MDgwNDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | af71d93c48d5b840c06d5566d03c5e85d90b8c980f05049df7777894d02cbd93 |
| hovercard-subject-tag | pull_request:3990215006 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/javascript-tutorial/en.javascript.info/pull/3977/files |
| twitter:image | https://avatars.githubusercontent.com/u/174747728?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/174747728?s=400&v=4 |
| og:image:alt | The task description says the function should take natural numbers only, but prompt() returns String, which we pass to pow(). It accidentally works because we use *= operator which performs implici... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/javascript-tutorial/en.javascript.info git https://github.com/javascript-tutorial/en.javascript.info.git |
| octolytics-dimension-user_id | 49552305 |
| octolytics-dimension-user_login | javascript-tutorial |
| octolytics-dimension-repository_id | 93253246 |
| octolytics-dimension-repository_nwo | javascript-tutorial/en.javascript.info |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 93253246 |
| octolytics-dimension-repository_network_root_nwo | javascript-tutorial/en.javascript.info |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 24801cf86623a319252348d1fd69122ad974b842 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width