{"id":5896,"date":"2022-03-28T16:22:05","date_gmt":"2022-03-28T16:22:05","guid":{"rendered":"https:\/\/brightchamps.com\/blog\/?p=5896"},"modified":"2024-10-04T06:11:45","modified_gmt":"2024-10-04T06:11:45","slug":"types-of-variables-in-scratch","status":"publish","type":"post","link":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/","title":{"rendered":"All About Variables in Scratch: Types Of Variables In Scratch"},"content":{"rendered":"<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/brightchamps.com\/blog\/\">Home<\/a><\/span> \u00bb <span><a href=\"https:\/\/brightchamps.com\/blog\/code-for-kids\/\">Code for Kids Corner<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\"><strong>All About Variables in Scratch: Types Of Variables In Scratch<\/strong><\/span><\/span><\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In summary, variables are like containers that are used to store data or information in programming languages like <a href=\"https:\/\/brightchamps.com\/blog\/guides\/scratch-programming\/\">Scratch<\/a> or any other programming language.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We can save distinct values using variables. It could be a name, a number, or any other kind of data.<\/p>\n\n\n\n<div class=\"wp-block-yoast-seo-table-of-contents yoast-table-of-contents\"><h2>Table of contents<\/h2><ul><li><a href=\"#h-types-of-data\" data-level=\"2\">Types of Data<\/a><\/li><li><a href=\"#h-scope-of-variables\" data-level=\"2\">Scope of Variables\u00a0\u00a0<\/a><\/li><li><a href=\"#h-types-of-variables-in-scratch\" data-level=\"2\">Types of Variables in Scratch<\/a><\/li><\/ul><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n<div id=\"cstm_banner_cta\"><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-types-of-data\">Types of Data<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>String<\/strong>: which can be written inside double quotes e.g.; \u201cVarun Singh\u201d, \u201cBrightchamps is the best place for learning <a href=\"https:\/\/brightchamps.com\/blog\/kids-coding-languages\/\" target=\"_blank\" rel=\"noreferrer noopener\">coding for kids<\/a>\u201d\u00a0<\/li>\n\n\n\n<li><strong>Integer<\/strong>: whole numbers without decimal part is called integer e.g., 12,5,8&nbsp;<\/li>\n\n\n\n<li><strong>Float<\/strong>: Numbers with decimal parts. E.g., 23.05, 52.33, 12.1&nbsp;<\/li>\n\n\n\n<li><strong>Boolean<\/strong>: True or false Boolean values&nbsp;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img fetchpriority=\"high\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"594\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Types-Of-Variables-In-Scratch-1-1024x594.png\" alt=\"Types Of Variables In Scratch\" class=\"wp-image-5897\" style=\"width:768px;height:446px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Types-Of-Variables-In-Scratch-1-1024x594.png 1024w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Types-Of-Variables-In-Scratch-1-980x568.png 980w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Types-Of-Variables-In-Scratch-1-480x278.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1024px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here <strong><em>\u201cName\u201d<\/em><\/strong><em> <\/em>is the variable that can store any values like John or Chris. Similarly, the&nbsp; variable<strong><em> \u201cPlace\u201d<\/em><\/strong> can store different places&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"h-variable-declaration\"><strong>Variable Declaration&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using the keyword \u2018var\u2019 we can declare a variable. Assume we need to store data; we can do so using the following method.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">var a = \u201cArun Singh\u201d; \nvar b = 36; \nvar v = true;<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"708\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Types-Of-Variables-In-Scratch-2-1024x708.png\" alt=\"Types Of Variables In Scratch\" class=\"wp-image-5898\" style=\"width:768px;height:531px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Types-Of-Variables-In-Scratch-2-1024x708.png 1024w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Types-Of-Variables-In-Scratch-2-980x677.png 980w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Types-Of-Variables-In-Scratch-2-480x332.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1024px, 100vw\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-scope-of-variables\"><strong>Scope of Variables&nbsp;&nbsp;<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Variables in a program have a scope and they live and die within the scope.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A variable declared inside a function or any block of code starting and ending with { } (for example &#8211; for loop) have scope defined only inside the function (or curly brackets).&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Any other function or block of code cannot directly access it. They are referred to as having a local scope.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Global scope variables are those that are declared outside of the top-level functions. You can therefore access them from wherever in the code.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">As an example, if you put on a headphone and listen to music, can your friend around you hear the music?<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">The answer would be no.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the other hand, everyone can hear the music played at the party by the speaker, right?<\/p>\n\n\n\n\n\n<p class=\"wp-block-paragraph\">Here, Headphones are a local source of music, while speakers are a global music source for everyone.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In short, headphones are like a local variable, which means that only the corresponding listener with the headphone can access the music, whereas the speaker is like a global variable, which means that anyone can access it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Similarly, in programming, variables declared outside the function at the top are said to have global scope because any function can access the variable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the other hand, the variables which are declared inside a particular function have a local scope because only that particular function can have access to that variable&nbsp;&nbsp;<\/p>\n\n\n\n<div id=\"cstm_banner_cta\">&nbsp;<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-types-of-variables-in-scratch\"><strong>Types of Variables in Scratch<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In Scratch, there are three types of variables. In addition to the Global and Local variables, there is also a cloud variable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let us briefly discuss all three of them;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Global variable: <\/strong>Global variable is the standard variable that can be changed or accessed from any sprite in the project or stage. It doesn\u2019t matter which sprite it was created on.&nbsp;<\/li>\n\n\n\n<li><strong>Local variable:<\/strong> A local variable can only be changed or accessed by the sprite that created it. This variable is not accessible to any other <a href=\"https:\/\/brightchamps.com\/blog\/make-sprite-spin-scratch\/\">sprite<\/a> and can be considered the stark opposite of the Global Variable.<\/li>\n\n\n\n<li><strong>Cloud variables: <\/strong>Cloud variables, distinguished by a cloud-like symbol in front of the variable name, allow users to store variables on the scratch server. Cloud variables are extremely fast to update.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The cloud variable only accepts numeric data and has a maximum data size of 256 characters as of <a href=\"https:\/\/brightchamps.com\/blog\/new-code-blocks-in-scratch-3\/\">Scratch 3.0<\/a>. You can create up to ten cloud variables in a single Scratch project.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The use of variables is essential in computer programming. Variables function as data containers by storing changeable values in memory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">They are designed to function so that they may only hold one value at a time, and that value may be anything from strings to booleans to numbers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Scratch, with its simple <a href=\"https:\/\/brightchamps.com\/blog\/block-based-coding\/\">block-based programming language<\/a>, is an excellent platform for learning the concept of variables.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As a user creates projects in Scratch, they will better understand the function and application of variables.<\/p>\n\n\n\n\n\n<p class=\"wp-block-paragraph\">Learn Scratch at <a href=\"https:\/\/brightchamps.com\/\">BrightChamps<\/a> with its specially designed curriculum that makes learning programming easy for students in Grade 1-12. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">BrightChamps also teaches a variety of other programs that help kids build a foundation in computer programming through activities, interactive lessons, and other means.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/brightchamps.com\/\">BrightChamps<\/a> provides<a href=\"https:\/\/brightchamps.com\/blog\/teaching-financial-literacy-for-kids\/\" target=\"_blank\" rel=\"noreferrer noopener\"> financial education for kids<\/a>, equipping them with essential money management knowledge for a successful future.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In summary, variables are like containers that are used to store data or information in programming languages like Scratch or any other programming language. We can save distinct values using variables. It could be a name, a number, or any other kind of data. Types of Data Here \u201cName\u201d is the variable that can store [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":5901,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"1080","footnotes":""},"categories":[49],"tags":[68],"class_list":["post-5896","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-for-kids","tag-codechamps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>All About Variables in Scratch: Types Of Variables In Scratch - BrightChamps Blog<\/title>\n<meta name=\"description\" content=\"In Scratch, there are three different types of variables: global, local, and cloud. Variables are used in coding to store data.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"All About Variables in Scratch: Types Of Variables In Scratch - BrightChamps Blog\" \/>\n<meta property=\"og:description\" content=\"In Scratch, there are three different types of variables: global, local, and cloud. Variables are used in coding to store data.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/\" \/>\n<meta property=\"og:site_name\" content=\"BrightChamps Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BrightChamps-101266664954230\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-28T16:22:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-04T06:11:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Heres-Everything-A-Coder-Should-Know-About-Variables.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2100\" \/>\n\t<meta property=\"og:image:height\" content=\"1185\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Team BrightChamps\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Team BrightChamps\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/types-of-variables-in-scratch\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/types-of-variables-in-scratch\\\/\"},\"author\":{\"name\":\"Team BrightChamps\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#\\\/schema\\\/person\\\/696f52bb580934e5022585ac161e5123\"},\"headline\":\"All About Variables in Scratch: Types Of Variables In Scratch\",\"datePublished\":\"2022-03-28T16:22:05+00:00\",\"dateModified\":\"2024-10-04T06:11:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/types-of-variables-in-scratch\\\/\"},\"wordCount\":731,\"publisher\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/types-of-variables-in-scratch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/Heres-Everything-A-Coder-Should-Know-About-Variables.png\",\"keywords\":[\"CodeChamps\"],\"articleSection\":[\"Code for Kids Corner\"],\"inLanguage\":\"en-US\",\"accessibilityFeature\":[\"tableOfContents\"]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/types-of-variables-in-scratch\\\/\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/types-of-variables-in-scratch\\\/\",\"name\":\"All About Variables in Scratch: Types Of Variables In Scratch - BrightChamps Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/types-of-variables-in-scratch\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/types-of-variables-in-scratch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/Heres-Everything-A-Coder-Should-Know-About-Variables.png\",\"datePublished\":\"2022-03-28T16:22:05+00:00\",\"dateModified\":\"2024-10-04T06:11:45+00:00\",\"description\":\"In Scratch, there are three different types of variables: global, local, and cloud. Variables are used in coding to store data.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/types-of-variables-in-scratch\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/brightchamps.com\\\/blog\\\/types-of-variables-in-scratch\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/types-of-variables-in-scratch\\\/#primaryimage\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/Heres-Everything-A-Coder-Should-Know-About-Variables.png\",\"contentUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/Heres-Everything-A-Coder-Should-Know-About-Variables.png\",\"width\":2100,\"height\":1185,\"caption\":\"Here\u2019s Everything A Coder Should Know About Variables\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/types-of-variables-in-scratch\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Code for Kids Corner\",\"item\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/code-for-kids\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"All About Variables in Scratch: Types Of Variables In Scratch\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/\",\"name\":\"BrightChamps Blog\",\"description\":\"BrightChamps Blog, also known as BrightChamps Hub is a go-to resource hub for everything on Coding for kids\",\"publisher\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#organization\",\"name\":\"BrightChamps\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/BrightCHAMPS-logo-new-1.png\",\"contentUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/BrightCHAMPS-logo-new-1.png\",\"width\":417,\"height\":80,\"caption\":\"BrightChamps\"},\"image\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/BrightChamps-101266664954230\\\/\",\"https:\\\/\\\/www.instagram.com\\\/brightchamps\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/brightchamps\\\/mycompany\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UC_Afe_rMGoK5Bs4nSt8QIzQ\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#\\\/schema\\\/person\\\/696f52bb580934e5022585ac161e5123\",\"name\":\"Team BrightChamps\",\"description\":\"We are an army of educators and passionate learners from BrightChamps family, committed to providing free learning resources to kids, parents &amp; students. Learn from Us\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/author\\\/team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"All About Variables in Scratch: Types Of Variables In Scratch - BrightChamps Blog","description":"In Scratch, there are three different types of variables: global, local, and cloud. Variables are used in coding to store data.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/","og_locale":"en_US","og_type":"article","og_title":"All About Variables in Scratch: Types Of Variables In Scratch - BrightChamps Blog","og_description":"In Scratch, there are three different types of variables: global, local, and cloud. Variables are used in coding to store data.","og_url":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/","og_site_name":"BrightChamps Blog","article_publisher":"https:\/\/www.facebook.com\/BrightChamps-101266664954230\/","article_published_time":"2022-03-28T16:22:05+00:00","article_modified_time":"2024-10-04T06:11:45+00:00","og_image":[{"width":2100,"height":1185,"url":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Heres-Everything-A-Coder-Should-Know-About-Variables.png","type":"image\/png"}],"author":"Team BrightChamps","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Team BrightChamps","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/#article","isPartOf":{"@id":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/"},"author":{"name":"Team BrightChamps","@id":"https:\/\/brightchamps.com\/blog\/#\/schema\/person\/696f52bb580934e5022585ac161e5123"},"headline":"All About Variables in Scratch: Types Of Variables In Scratch","datePublished":"2022-03-28T16:22:05+00:00","dateModified":"2024-10-04T06:11:45+00:00","mainEntityOfPage":{"@id":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/"},"wordCount":731,"publisher":{"@id":"https:\/\/brightchamps.com\/blog\/#organization"},"image":{"@id":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/#primaryimage"},"thumbnailUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Heres-Everything-A-Coder-Should-Know-About-Variables.png","keywords":["CodeChamps"],"articleSection":["Code for Kids Corner"],"inLanguage":"en-US","accessibilityFeature":["tableOfContents"]},{"@type":"WebPage","@id":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/","url":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/","name":"All About Variables in Scratch: Types Of Variables In Scratch - BrightChamps Blog","isPartOf":{"@id":"https:\/\/brightchamps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/#primaryimage"},"image":{"@id":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/#primaryimage"},"thumbnailUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Heres-Everything-A-Coder-Should-Know-About-Variables.png","datePublished":"2022-03-28T16:22:05+00:00","dateModified":"2024-10-04T06:11:45+00:00","description":"In Scratch, there are three different types of variables: global, local, and cloud. Variables are used in coding to store data.","breadcrumb":{"@id":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/#primaryimage","url":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Heres-Everything-A-Coder-Should-Know-About-Variables.png","contentUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Heres-Everything-A-Coder-Should-Know-About-Variables.png","width":2100,"height":1185,"caption":"Here\u2019s Everything A Coder Should Know About Variables"},{"@type":"BreadcrumbList","@id":"https:\/\/brightchamps.com\/blog\/types-of-variables-in-scratch\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/brightchamps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Code for Kids Corner","item":"https:\/\/brightchamps.com\/blog\/code-for-kids\/"},{"@type":"ListItem","position":3,"name":"All About Variables in Scratch: Types Of Variables In Scratch"}]},{"@type":"WebSite","@id":"https:\/\/brightchamps.com\/blog\/#website","url":"https:\/\/brightchamps.com\/blog\/","name":"BrightChamps Blog","description":"BrightChamps Blog, also known as BrightChamps Hub is a go-to resource hub for everything on Coding for kids","publisher":{"@id":"https:\/\/brightchamps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/brightchamps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/brightchamps.com\/blog\/#organization","name":"BrightChamps","url":"https:\/\/brightchamps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/brightchamps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2026\/03\/BrightCHAMPS-logo-new-1.png","contentUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2026\/03\/BrightCHAMPS-logo-new-1.png","width":417,"height":80,"caption":"BrightChamps"},"image":{"@id":"https:\/\/brightchamps.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/BrightChamps-101266664954230\/","https:\/\/www.instagram.com\/brightchamps\/","https:\/\/www.linkedin.com\/company\/brightchamps\/mycompany\/","https:\/\/www.youtube.com\/channel\/UC_Afe_rMGoK5Bs4nSt8QIzQ"]},{"@type":"Person","@id":"https:\/\/brightchamps.com\/blog\/#\/schema\/person\/696f52bb580934e5022585ac161e5123","name":"Team BrightChamps","description":"We are an army of educators and passionate learners from BrightChamps family, committed to providing free learning resources to kids, parents &amp; students. Learn from Us","url":"https:\/\/brightchamps.com\/blog\/author\/team\/"}]}},"_links":{"self":[{"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts\/5896","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/comments?post=5896"}],"version-history":[{"count":5,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts\/5896\/revisions"}],"predecessor-version":[{"id":33106,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts\/5896\/revisions\/33106"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/media\/5901"}],"wp:attachment":[{"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/media?parent=5896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/categories?post=5896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/tags?post=5896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}