{"id":26964212,"url":"https://github.com/jasheloper/conditionals-test-1","last_synced_at":"2025-04-03T06:30:13.422Z","repository":{"id":201103054,"uuid":"706455188","full_name":"jasheloper/conditionals-test-1","owner":"jasheloper","description":"Test skills with JavaScript conditionals.","archived":false,"fork":false,"pushed_at":"2023-10-24T01:02:44.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-10-24T02:27:52.727Z","etag":null,"topics":["conditionals","if-else","javascript"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/jasheloper.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,"governance":null}},"created_at":"2023-10-18T01:46:18.000Z","updated_at":"2023-10-24T01:18:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2bc6c5d-f44e-4689-957a-c1ce7c9397cd","html_url":"https://github.com/jasheloper/conditionals-test-1","commit_stats":null,"previous_names":["jasheloper/conditionals-test-1"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasheloper%2Fconditionals-test-1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasheloper%2Fconditionals-test-1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasheloper%2Fconditionals-test-1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasheloper%2Fconditionals-test-1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasheloper","download_url":"https://codeload.github.com/jasheloper/conditionals-test-1/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246947623,"owners_count":20859286,"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":["conditionals","if-else","javascript"],"created_at":"2025-04-03T06:30:12.176Z","updated_at":"2025-04-03T06:30:13.316Z","avatar_url":"https://github.com/jasheloper.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n## Exercise Link:\n\nhttps://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Test_your_skills:_Conditionals\n\n\n## Instructions:\n\nIn this task you are provided with two variables:\n\n`season` — contains a string that says what the current season is. \u003cbr\u003e\n`response` — begins uninitialized, but is later used to store a response that will be printed to the output panel.\n\n- We want you to create a conditional that checks whether season contains the string \u003cb\u003e\"summer\"\u003c/b\u003e, and if so assigns a string to response that gives the user an appropriate message about the season. \n\n    - If not, it should assign a generic string to response that tells the user we don't know what season it is.\n\n- To finish off, you should then add another test that checks whether season contains the string \u003cb\u003e\"winter\"\u003c/b\u003e, and again assigns an appropriate string to response.\n\n\n## My Solution:\n\n```\n    // Add your code here\n\n    let season = 'summer';\n    let response;\n    \n    if (season === 'summer') {\n        response = \"Pack for the beach.\"\n    } else if (season === 'winter') {\n        response = \"Stay inside and drink a hot beverage.\"\n    } else {\n        response = \"Sorry. Season not found.\"\n    }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasheloper%2Fconditionals-test-1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasheloper%2Fconditionals-test-1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasheloper%2Fconditionals-test-1/lists"}