{"id":26355900,"url":"https://github.com/kshirish/javascript-garden","last_synced_at":"2025-03-16T13:18:24.963Z","repository":{"id":20088526,"uuid":"23357728","full_name":"kshirish/Javascript-Garden","owner":"kshirish","description":"First few steps to learn javascript","archived":false,"fork":false,"pushed_at":"2016-06-14T08:12:27.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-03-15T22:03:39.004Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kshirish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-26T15:55:46.000Z","updated_at":"2023-03-09T00:20:40.000Z","dependencies_parsed_at":"2022-09-02T13:41:48.088Z","dependency_job_id":null,"html_url":"https://github.com/kshirish/Javascript-Garden","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshirish%2FJavascript-Garden","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshirish%2FJavascript-Garden/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshirish%2FJavascript-Garden/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshirish%2FJavascript-Garden/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kshirish","download_url":"https://codeload.github.com/kshirish/Javascript-Garden/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871889,"owners_count":20361380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-16T13:18:24.396Z","updated_at":"2025-03-16T13:18:24.944Z","avatar_url":"https://github.com/kshirish.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Javascript Garden\n=================\n\nThis is just a bunch of snippets accumulated from here and there, that might help you improving basics. \n\n1.  https://bonsaiden.github.io/JavaScript-Garden/\n2.  https://developer.mozilla.org\n3.  Javascript - The Good Parts By Doglous Crockford\n\n### e.stopPropagation() vs e.stopImmediatePropagation() vs e.preventDefault()\n```html\n\u003cdiv\u003e\n    \u003cbutton\u003epress\u003c/button\u003e\n\u003c/div\u003e\n```\n\n```javascript\nvar kid = document.getElementsByTagName('button')[0];\nvar dad = document.getElementsByTagName('div')[0];\n\nkid.addEventListener('click', function(e) {\n    console.log('kid here');\n    return false;\n    // e.preventDefault();\n    // e.stopPropagation();\n    // e.stopImmediatePropagation();\n});\n\nkid.addEventListener('click', function(e) {\n    console.log('neighbour kid here');\n});\n\ndad.addEventListener('click', function(e) {\n   console.log('dad here');\n});\n\ndad.addEventListener('click', function(e) {\n   console.log('neighbour dad here');\n});\n```\n\n*Edit on fiddle here*: http://jsfiddle.net/7jquh3go/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshirish%2Fjavascript-garden","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkshirish%2Fjavascript-garden","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshirish%2Fjavascript-garden/lists"}