Title: added input validation to greet() function by Pranayee35 · Pull Request #87 · JavaScriptToday/hacktoberfest · GitHub
Open Graph Title: added input validation to greet() function by Pranayee35 · Pull Request #87 · JavaScriptToday/hacktoberfest
X Title: added input validation to greet() function by Pranayee35 · Pull Request #87 · JavaScriptToday/hacktoberfest
Description: This update improves the existing greet() function by handling cases where the user does not enter a name or cancels the prompt. If the input is empty or null, a message "You didn't enter your name!" is shown. If a valid name is entered, it displays a friendly greeting using template literals. This makes the function more user-friendly and prevents undefined or blank outputs in the console.
Open Graph Description: This update improves the existing greet() function by handling cases where the user does not enter a name or cancels the prompt. If the input is empty or null, a message "You didn't enter ...
X Description: This update improves the existing greet() function by handling cases where the user does not enter a name or cancels the prompt. If the input is empty or null, a message "You didn'...
Opengraph URL: https://github.com/JavaScriptToday/hacktoberfest/pull/87
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:996a0c84-45eb-1180-4d75-b71a63fb8285 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D546:167F2B:64BB3D:8D0CBC:696902ED |
| html-safe-nonce | b50d99eb5ac50aeda9b4da12c6d7ed8a84519a27704cd40458f75c242638fa49 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTQ2OjE2N0YyQjo2NEJCM0Q6OEQwQ0JDOjY5NjkwMkVEIiwidmlzaXRvcl9pZCI6IjYwMTQyMDA2OTI5ODcyMDAyMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a7cb35237cf0d5e175d041fecc9f53941e484abd41f1910a0a44f131b9d71b60 |
| hovercard-subject-tag | pull_request:2950070167 |
| 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/JavaScriptToday/hacktoberfest/pull/87/files |
| twitter:image | https://avatars.githubusercontent.com/u/198051214?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/198051214?s=400&v=4 |
| og:image:alt | This update improves the existing greet() function by handling cases where the user does not enter a name or cancels the prompt. If the input is empty or null, a message "You didn't enter ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e6156bd4ef9f2dc8dadf4c49a8f7ed8532186388cef72eda3ccb9f0ab3b8cfca |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/JavaScriptToday/hacktoberfest git https://github.com/JavaScriptToday/hacktoberfest.git |
| octolytics-dimension-user_id | 67715808 |
| octolytics-dimension-user_login | JavaScriptToday |
| octolytics-dimension-repository_id | 694443135 |
| octolytics-dimension-repository_nwo | JavaScriptToday/hacktoberfest |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 694443135 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptToday/hacktoberfest |
| 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 | fd1938215b152e2c6a29cf56fec07fd9f91f1203 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width