Title: Question re Battleship game in Ch. 8: why functions are not part of our objects? · Issue #16 · bethrobson/Head-First-JavaScript-Programming · GitHub
Open Graph Title: Question re Battleship game in Ch. 8: why functions are not part of our objects? · Issue #16 · bethrobson/Head-First-JavaScript-Programming
X Title: Question re Battleship game in Ch. 8: why functions are not part of our objects? · Issue #16 · bethrobson/Head-First-JavaScript-Programming
Description: I have a question about this Battleship code in Chapter 8. We have the model, view, controller objects; however, some functions, like helper function parseGuess() and handler functions, like handleKeyPress are not a part of the objects. ...
Open Graph Description: I have a question about this Battleship code in Chapter 8. We have the model, view, controller objects; however, some functions, like helper function parseGuess() and handler functions, like handle...
X Description: I have a question about this Battleship code in Chapter 8. We have the model, view, controller objects; however, some functions, like helper function parseGuess() and handler functions, like handle...
Opengraph URL: https://github.com/bethrobson/Head-First-JavaScript-Programming/issues/16
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question re Battleship game in Ch. 8: why functions are not part of our objects? ","articleBody":"I have a question about [this](https://github.com/bethrobson/Head-First-JavaScript-Programming/blob/master/chapter8/battleship.js) Battleship code in Chapter 8. We have the model, view, controller objects; however, some functions, like helper function `parseGuess()` and handler functions, like `handleKeyPress` are not a part of the objects. \n\nFor example, why couldn't we make the `parseGuess()` function a method of controller object? And is `init` function always a stand-alone function because it needs to start everything? \n\nThank you so much! \n","author":{"url":"https://github.com/mashablair","@type":"Person","name":"mashablair"},"datePublished":"2016-09-23T00:04:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/16/Head-First-JavaScript-Programming/issues/16"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ae8c2e3f-c055-6676-4d7b-f8ce44811fbf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F56:4D676:7E6E42:A9EBED:697314BA |
| html-safe-nonce | 57509f23606fa5abcff4106d91d16f194dc90582bab9816be5ff7fd7a4690409 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjU2OjRENjc2OjdFNkU0MjpBOUVCRUQ6Njk3MzE0QkEiLCJ2aXNpdG9yX2lkIjoiMzQ4Nzg0MjY0MjQ3OTQ4NjEzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e7d60e4b41938029058420b1878de8f63cd188b6fa870d4a5077017acedc14af |
| hovercard-subject-tag | issue:178751201 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/bethrobson/Head-First-JavaScript-Programming/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/29d793ffe0064a710c0cd5104b9fac192ee4706d3795dfd061610b69a1d4d42e/bethrobson/Head-First-JavaScript-Programming/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/29d793ffe0064a710c0cd5104b9fac192ee4706d3795dfd061610b69a1d4d42e/bethrobson/Head-First-JavaScript-Programming/issues/16 |
| og:image:alt | I have a question about this Battleship code in Chapter 8. We have the model, view, controller objects; however, some functions, like helper function parseGuess() and handler functions, like handle... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mashablair |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| turbo-cache-control | no-preview |
| go-import | github.com/bethrobson/Head-First-JavaScript-Programming git https://github.com/bethrobson/Head-First-JavaScript-Programming.git |
| octolytics-dimension-user_id | 30760 |
| octolytics-dimension-user_login | bethrobson |
| octolytics-dimension-repository_id | 8868903 |
| octolytics-dimension-repository_nwo | bethrobson/Head-First-JavaScript-Programming |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8868903 |
| octolytics-dimension-repository_network_root_nwo | bethrobson/Head-First-JavaScript-Programming |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a5e2b48bd1260476599758f5d253b5d24092ab84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width