René's URL Explorer Experiment


Title: Javascript course - Word Analytics word count bug · Issue #11 · ByteGrad/Professional-JavaScript-Course · GitHub

Open Graph Title: Javascript course - Word Analytics word count bug · Issue #11 · ByteGrad/Professional-JavaScript-Course

X Title: Javascript course - Word Analytics word count bug · Issue #11 · ByteGrad/Professional-JavaScript-Course

Description: This might be a somewhat pedantic issue, but working through the javascript course, I wrote my own code first, then comparedd it to yours and found a couple of pretty obvious bugs with the word count feature. As someone who has bought al...

Open Graph Description: This might be a somewhat pedantic issue, but working through the javascript course, I wrote my own code first, then comparedd it to yours and found a couple of pretty obvious bugs with the word cou...

X Description: This might be a somewhat pedantic issue, but working through the javascript course, I wrote my own code first, then comparedd it to yours and found a couple of pretty obvious bugs with the word cou...

Opengraph URL: https://github.com/ByteGrad/Professional-JavaScript-Course/issues/11

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Javascript course - Word Analytics word count bug","articleBody":"This might be a somewhat pedantic issue, but working through the javascript course, I wrote my own code first, then comparedd it to yours and found a couple of pretty obvious bugs with the word count feature.\r\n\r\nAs someone who has bought all your courses, let me say in advance that I really enjoy your lecture style and command of the material, so this is really just something for those who are trying to dig beneath the surface level of the projects, or trying out variations using their own code.\r\n\r\nSince the word count splits on a space constant, the number of words will be off if:\r\n\r\n- any whitespace is added, so in your video even though you have 4 words, the word count is 5 as you type once you add an extra space.\r\n- adding some whitespace before or after throws off the word count and the check for an empty entry\r\n- with the space constant ' ', split doesn't understand other whitespace characters like newlines and tabs\r\n\r\nThis can of course be fixed fairly easily with some simple regex and slight variation to your code (my variable names might be different from yours):\r\n\r\n`const numwordsEl = document.querySelector(\".stat__number--words\");`\r\n\r\nIn the input handler function...\r\n\r\n    if (textareaEl.value.trim().length \u003e 0) {\r\n        const strWords = textareaEl.value.trim().split(/\\s+/).length;\r\n        numwordsEl.textContent = strWords;\r\n    } else {\r\n        numwordsEl.textContent = 0;\r\n    }","author":{"url":"https://github.com/gizmola","@type":"Person","name":"gizmola"},"datePublished":"2024-11-05T05:35:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/11/Professional-JavaScript-Course/issues/11"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ecf3a6b0-0537-2d5c-b94d-791e71c6cc5f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDC5A:111866:D1DBC5:114161B:6A51930D
html-safe-nonce3d64689ec83efdb8b75a303a405d3e85560e4ecaeced5534739e07bd063ff52a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzVBOjExMTg2NjpEMURCQzU6MTE0MTYxQjo2QTUxOTMwRCIsInZpc2l0b3JfaWQiOiIxMDYwMjg3MDU5MDQ0OTYzMDg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4cfcb1b801ba17d48ca2d5bff95e1ed711e056e8ce4e467ef4536280d6674fbf
hovercard-subject-tagissue:2634469031
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ByteGrad/Professional-JavaScript-Course/11/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d4ec9e0eb3e675f88f58f39f96cbb4307ed53d24bbbb7fecb7c7ad5c10a3cc45/ByteGrad/Professional-JavaScript-Course/issues/11
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d4ec9e0eb3e675f88f58f39f96cbb4307ed53d24bbbb7fecb7c7ad5c10a3cc45/ByteGrad/Professional-JavaScript-Course/issues/11
og:image:altThis might be a somewhat pedantic issue, but working through the javascript course, I wrote my own code first, then comparedd it to yours and found a couple of pretty obvious bugs with the word cou...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegizmola
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/ByteGrad/Professional-JavaScript-Course git https://github.com/ByteGrad/Professional-JavaScript-Course.git
octolytics-dimension-user_id82057865
octolytics-dimension-user_loginByteGrad
octolytics-dimension-repository_id480343983
octolytics-dimension-repository_nwoByteGrad/Professional-JavaScript-Course
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id480343983
octolytics-dimension-repository_network_root_nwoByteGrad/Professional-JavaScript-Course
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ByteGrad/Professional-JavaScript-Course/issues/11#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FByteGrad%2FProfessional-JavaScript-Course%2Fissues%2F11
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FByteGrad%2FProfessional-JavaScript-Course%2Fissues%2F11
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ByteGrad%2FProfessional-JavaScript-Course
Reloadhttps://github.com/ByteGrad/Professional-JavaScript-Course/issues/11
Reloadhttps://github.com/ByteGrad/Professional-JavaScript-Course/issues/11
Reloadhttps://github.com/ByteGrad/Professional-JavaScript-Course/issues/11
ByteGrad https://github.com/ByteGrad
Professional-JavaScript-Coursehttps://github.com/ByteGrad/Professional-JavaScript-Course
Notifications https://github.com/login?return_to=%2FByteGrad%2FProfessional-JavaScript-Course
Fork 37 https://github.com/login?return_to=%2FByteGrad%2FProfessional-JavaScript-Course
Star 61 https://github.com/login?return_to=%2FByteGrad%2FProfessional-JavaScript-Course
Code https://github.com/ByteGrad/Professional-JavaScript-Course
Issues 6 https://github.com/ByteGrad/Professional-JavaScript-Course/issues
Pull requests 0 https://github.com/ByteGrad/Professional-JavaScript-Course/pulls
Actions https://github.com/ByteGrad/Professional-JavaScript-Course/actions
Projects https://github.com/ByteGrad/Professional-JavaScript-Course/projects
Security and quality 0 https://github.com/ByteGrad/Professional-JavaScript-Course/security
Insights https://github.com/ByteGrad/Professional-JavaScript-Course/pulse
Code https://github.com/ByteGrad/Professional-JavaScript-Course
Issues https://github.com/ByteGrad/Professional-JavaScript-Course/issues
Pull requests https://github.com/ByteGrad/Professional-JavaScript-Course/pulls
Actions https://github.com/ByteGrad/Professional-JavaScript-Course/actions
Projects https://github.com/ByteGrad/Professional-JavaScript-Course/projects
Security and quality https://github.com/ByteGrad/Professional-JavaScript-Course/security
Insights https://github.com/ByteGrad/Professional-JavaScript-Course/pulse
Javascript course - Word Analytics word count bughttps://github.com/ByteGrad/Professional-JavaScript-Course/issues/11#top
https://github.com/gizmola
gizmolahttps://github.com/gizmola
on Nov 5, 2024https://github.com/ByteGrad/Professional-JavaScript-Course/issues/11#issue-2634469031
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.