{"id":21672822,"url":"https://github.com/jasonliang-dev/pseudorun","last_synced_at":"2025-10-20T07:16:46.012Z","repository":{"id":140015385,"uuid":"123525690","full_name":"jasonliang-dev/pseudorun","owner":"jasonliang-dev","description":"Run pseudocode in the broswer","archived":false,"fork":false,"pushed_at":"2023-03-01T17:38:02.000Z","size":80,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T08:35:43.045Z","etag":null,"topics":["learning-exercise","pseudocode","school","school-assignment","school-education","school-work"],"latest_commit_sha":null,"homepage":"http://jasonliang512.github.io/pseudorun/","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/jasonliang-dev.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-02T03:31:17.000Z","updated_at":"2019-05-02T19:31:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8dc870a-3c89-4ddd-801d-2754a0b06a3f","html_url":"https://github.com/jasonliang-dev/pseudorun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jasonliang-dev/pseudorun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonliang-dev%2Fpseudorun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonliang-dev%2Fpseudorun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonliang-dev%2Fpseudorun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonliang-dev%2Fpseudorun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasonliang-dev","download_url":"https://codeload.github.com/jasonliang-dev/pseudorun/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonliang-dev%2Fpseudorun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274949848,"owners_count":25379511,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["learning-exercise","pseudocode","school","school-assignment","school-education","school-work"],"created_at":"2024-11-25T13:32:56.394Z","updated_at":"2025-10-20T07:16:40.964Z","avatar_url":"https://github.com/jasonliang-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pseudocode Cheatsheet\n\nThe content below is for pseudocode reference.\n\n### Variable Declaration\n\nAssign the value 10 to the variable `num`.\n\n```\nSet num to 10\n```\n\n\u003e Alternative `num \u003c-- 10`\n\n**Note**: The following is a list of variable and function names that are reserved. Do *not* use these or bad things may happen:\n\n- `chooseExample`\n- `choose`\n- `convertLine`\n- `displayError`\n- `errorDisplay`\n- `examples`\n- `indentDisplay`\n- `indent`\n- `indexOfEnd`\n- `jscode`\n- `output`\n- `reindent`\n- `runButton`\n- `saveIndentLevel`\n- `setIndent`\n- `textarea`\n- `toast`\n\n### Comments\n\nWrite a comment by using `//`.\n\n```\n// This line will be ignored\nSet x to \"This line will be executed\"\n```\n\n### Output\n\nDisplay a value to output.\n\n```\nWrite \"Hello There!\"\n```\n\n\u003e Alternatives to `Write`: `Print`, `Display`, `Output`\n\n### Input\n\nRead the value given by the user and store it in a variable `x`.\n\n```\nRead x\n```\n\nA message can be displayed to the user when asking for input.\n\n```\nRead name \"Enter your name\"\nWrite \"Hello \" + name + \"!\"\n```\n\n\u003e Alternatives to `Read`: `Get`, `Input`\n\n### Increment/Decrement\n\nAdd or subtract 1 to a variable.\n\n```\nRead x\nRead y\nIncrement x\nDecrement y\n```\n\n### Conditions\n\nA condition is a part of code that will evaluate to either true or false when ran.\n\n| Example           | Description                                |\n|-------------------|--------------------------------------------|\n| `x = 10`          | True if x is equal to 10                   |\n| `x != 10`         | True if x is not equal to 10               |\n| `x \u003e 10`          | True if x is greater than 10               |\n| `x \u003c 10`          | True if x is less than 10                  |\n| `x \u003e= 10`         | True if x is greater than or equal to 10   |\n| `x \u003c= 10`         | True if x is less than or equal to 10      |\n| `cond1 and cond2` | True if both cond1 and cond2 is true       |\n| `cond1 or cond2`  | True if either cond1 or cond2 is true      |\n| `not cond1`       | cond1 becomes false if true and vice versa |\n\n\u003e Alternatives to `=`: `equals`, `is equal to`\n\n\u003e Alternatives to `!=`: `is not equal to`, `does not equal`\n\n\u003e Alternative to `\u003c=`: `is less than`\n\n\u003e Alternative to `\u003e=`: `is greater than`\n\n### If/Else\n\n`If` statements runs the code that is indented below it if the condition in brackets is true.\n\n```\nRead day\nIf (day = \"Wednesday\")\n    Print \"We have a lab today\"\n```\n\n`Else` statements runs the code that is indented below it if the above `If` statement was false.\n\n```\nRead num\nIf (num % 2 = 0)\n    Print \"Number is even\"\nElse\n    Print \"Number is odd\"\n```\n\nAdditionally, there are `ElseIf` statements which runs the indented block bellow it if the above `If` statement was false and if the condition in brackets is true.\n\n```\nRead day\nIf (day = \"Tuesday\" OR day = \"Thursday\")\n    Print \"Lecture today\"\nElseIf (day = \"Wednesday\")\n    Print \"Lab today\"\nElse\n    Print \"No class today\"\n```\n\n\u003e Alternatives to `ElseIf`: `Elif`, `Else If`\n\n### Loop\n\nCreate a loop by using `While`. The code inside the loop will continue to run as long as the condition within the brackets is true.\n\n```\nSet count to 1\nWhile (count \u003c= 10)\n    Print count\n    Increment count\n```\n\n### Functions\n\nFunctions contain a block of code that can be ran whenever it is called. Functions can return a value which can be assigned to a variable.\n\n```\nFunction clamp(number, min, max)\n    If (number \u003e max)\n        number \u003c-- max\n    Else If (number \u003c min)\n        number \u003c-- min\n    Return number\n\nSet x to clamp(10, -10, 5)\nPrint x\n```\n\nThe following functions are already defined. You can override them, but you can no longer access them:\n\n- `Push(array, value)`: adds a value to the top of an array.\n- `Pop(array)`: removes and returns the value from the top of an array.\n- `Enque(array, value)`: same as `Push`.\n- `Deque(array)`: removes and returns the value from the bottom of an array.\n- `Insert(array, value)`: same as `Push`.\n- `Delete(array, value)`: delete the value from the array if found.\n- `IsEmpty(array)`: returns true if an array is empty.\n- `IsThere(array, value)`: returns true if a value in an array is found.\n\n### Arrays\n\nAn array is a collection of values where a single value can be located by an index.\n\nArrays can be created like so:\n\n```\narray myArray[size]\n```\n\n\u003e Alternatives to `array`: `boolean`, `integer`, `float`, `string`\n\nDeclaring an array using `integer`, or some other data type does not necessarily mean that the array can only be populated with only one date type. This is because arrays in JavaScript can contain values with multiple data types.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonliang-dev%2Fpseudorun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonliang-dev%2Fpseudorun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonliang-dev%2Fpseudorun/lists"}