{"id":18572733,"url":"https://github.com/truecodersio/javascript_variables","last_synced_at":"2026-01-28T05:19:00.970Z","repository":{"id":41257942,"uuid":"327363191","full_name":"truecodersio/JavaScript_Variables","owner":"truecodersio","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-12T21:08:56.000Z","size":5,"stargazers_count":2,"open_issues_count":4,"forks_count":614,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T14:31:52.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/truecodersio.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":"2021-01-06T16:08:42.000Z","updated_at":"2023-07-04T21:36:46.000Z","dependencies_parsed_at":"2023-02-08T12:16:43.434Z","dependency_job_id":null,"html_url":"https://github.com/truecodersio/JavaScript_Variables","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/truecodersio/JavaScript_Variables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truecodersio%2FJavaScript_Variables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truecodersio%2FJavaScript_Variables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truecodersio%2FJavaScript_Variables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truecodersio%2FJavaScript_Variables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/truecodersio","download_url":"https://codeload.github.com/truecodersio/JavaScript_Variables/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truecodersio%2FJavaScript_Variables/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28840088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T02:10:51.810Z","status":"ssl_error","status_checked_at":"2026-01-28T02:10:50.806Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2024-11-06T23:07:04.910Z","updated_at":"2026-01-28T05:19:00.941Z","avatar_url":"https://github.com/truecodersio.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: \"Exercise: JS Introduction and Variables\"\nslug: \"/js-introduction-and-variables-exercise\"\n---\n\n## Objective\n\nYour objective is to begin using variables to store and pass values throughout your program.\n\n\u003e To see your work, you can _log_, or print, the values stored in your variables to the _console_. Use `console.log(variableName)` to see your results in the browser console.\n\n## Exercise 1: Declaring Variables\n\nSteps are to be completed in the `app.js` file.\n\n1. Declare a variable named `firstName` using the `const` keyword\n2. Declare a variable named `lastName` using the `let` keyword\n3. Declare a variable named `age` using the `var` keyword\n\n## Exercise 2: Assigning Values to Variables\n\nSteps are to be completed in the `app.js` file.\n\n1. Assign your first name as the **string** value to the variable `firstName`\n2. Assign your last name as the **string** value to the variable `lastName`\n3. Assign your age as the **number** value to the variable `age`\n\n## Exercise 3: Declaring and Assigning Values to Variables\n\nSteps are to be completed in the `app.js` file.\n\n1. Declare a variable named `language` using the `let` keyword, and assign it the value `\"JavaScript\"` (string)\n2. Declare a variable named `createdYear` using the `let` keyword, and assign it the value `1995` (number)\n3. Declare a variable named `isCaseSensitive` using the `let` keyword, and assign it the value `true` (boolean)\n\n## Exercise 4: Declaring and Assigning Values to Variables x2\n\nSteps are to be completed in the `app.js` file.\n\n1. Declare a variable named `price` using the `let` keyword, and assign it the value `19.99` (number)\n2. Declare a variable named `isOnSale` using the `let` keyword, and assign it the value `false` (boolean)\n3. Declare a variable named `salePercentage` using the `let` keyword, and assign it the value `15` (number)\n4. Declare a variable named `stock` using the `let` keyword, and assign it the value `0` (number)\n5. Declare a variable named `inStock` using the `let` keyword, and assign it the value `false` (boolean)\n6. Declare a variable named `selectedSize` using the `let` keyword, and assign it the value `\"M\"` (string)\n\n## Exercise 5: Declaring and Assigning Values to Variables x3\n\nSteps are to be completed in the `app.js` file.\n\n1. Declare a variable named `title` using the `let` keyword, and assign it the value `\"Name of the Wind\"` (string)\n2. Declare a variable named `author` using the `let` keyword, and assign it the value `\"Patrick Rothfuss\"` (string)\n3. Declare a variable named `pageCount` using the `let` keyword, and assign it the value `722` (number)\n4. Declare a variable named `bookmark` using the `let` keyword, and assign it the value `456` (number)\n5. Declare a variable named `hasRead` using the `let` keyword, and assign it the value `true` (boolean)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruecodersio%2Fjavascript_variables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftruecodersio%2Fjavascript_variables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruecodersio%2Fjavascript_variables/lists"}