Title: JavaScript - Pass-by-value || Page 92 · Issue #9 · bethrobson/Head-First-JavaScript-Programming · GitHub
Open Graph Title: JavaScript - Pass-by-value || Page 92 · Issue #9 · bethrobson/Head-First-JavaScript-Programming
X Title: JavaScript - Pass-by-value || Page 92 · Issue #9 · bethrobson/Head-First-JavaScript-Programming
Description: var age = 7; function addOne (x) { x = x +1; } addOne(age); document.write(age); I'm gonna break this down the way I have understood. So, we have a function called addOne which adds 1 to the value it accepts, right? And then we call the ...
Open Graph Description: var age = 7; function addOne (x) { x = x +1; } addOne(age); document.write(age); I'm gonna break this down the way I have understood. So, we have a function called addOne which adds 1 to the value ...
X Description: var age = 7; function addOne (x) { x = x +1; } addOne(age); document.write(age); I'm gonna break this down the way I have understood. So, we have a function called addOne which adds 1 to the va...
Opengraph URL: https://github.com/bethrobson/Head-First-JavaScript-Programming/issues/9
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JavaScript - Pass-by-value || Page 92","articleBody":"var age = 7;\nfunction addOne (x) {\n x = x +1; \n}\naddOne(age);\ndocument.write(age);\n\nI'm gonna break this down the way I have understood.\n\nSo, we have a function called addOne which adds 1 to the value it accepts, right?\nAnd then we call the function with an argument of the value 7. So, now the function adds 1 to 7 and age is 8.\nBut why is it that when I print out the value of age, it prints out 7 ?? \n","author":{"url":"https://github.com/adityathebe","@type":"Person","name":"adityathebe"},"datePublished":"2015-07-21T12:43:15Z","url":"https://github.com/bethrobson/Head-First-JavaScript-Programming/issues/9"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:61f8c339-a2b7-b233-696c-c0ffc3260403 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CAA8:322337:100120E:1610133:6AFBFA48 |
| html-safe-nonce | 4abf90a329db77d7f9859d044def6b100a4051212672f0a8d6ff7af52401ef23 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUE4OjMyMjMzNzoxMDAxMjBFOjE2MTAxMzM6NkFGQkZBNDgiLCJ2aXNpdG9yX2lkIjoiNTczNzY4MDEzMjg3NzU4MDg3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4f2f61f2eb550c13b48b3e40ac4a223ca74674f81f432502c51b261e6f69e3ac |
| hovercard-subject-tag | issue:96306590 |
| 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/9/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d6109dacf6a89bd4df73b5b3c471eeab22c11083f10f4feac7624055bfdfd961/bethrobson/Head-First-JavaScript-Programming/issues/9 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d6109dacf6a89bd4df73b5b3c471eeab22c11083f10f4feac7624055bfdfd961/bethrobson/Head-First-JavaScript-Programming/issues/9 |
| og:image:alt | var age = 7; function addOne (x) { x = x +1; } addOne(age); document.write(age); I'm gonna break this down the way I have understood. So, we have a function called addOne which adds 1 to the value ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adityathebe |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| 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 | b3b5633a74535d9c23385512d534c66c8fde1907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width