context stringlengths 545 71.9k | questionsrc stringlengths 16 10.2k | question stringlengths 11 563 |
|---|---|---|
welcome back ! in activity one , you learned that our brains are designed to grow . now we ’ ll supercharge that growth by setting a goal . directions : read the full article and complete the reflection form at the bottom to earn your badge and add learnstorm progress for your class . to access the reflection form , cl... | at the end of three months , they had improved their memory . goals trying challenging things is the best way to grow your brain . but challenges don ’ t happen by accident . | how do things happen with messaging your brain ? |
welcome back ! in activity one , you learned that our brains are designed to grow . now we ’ ll supercharge that growth by setting a goal . directions : read the full article and complete the reflection form at the bottom to earn your badge and add learnstorm progress for your class . to access the reflection form , cl... | welcome back ! in activity one , you learned that our brains are designed to grow . | why is math so hard ? |
welcome back ! in activity one , you learned that our brains are designed to grow . now we ’ ll supercharge that growth by setting a goal . directions : read the full article and complete the reflection form at the bottom to earn your badge and add learnstorm progress for your class . to access the reflection form , cl... | welcome back ! in activity one , you learned that our brains are designed to grow . | why does the moon block out the sun ? |
welcome back ! in activity one , you learned that our brains are designed to grow . now we ’ ll supercharge that growth by setting a goal . directions : read the full article and complete the reflection form at the bottom to earn your badge and add learnstorm progress for your class . to access the reflection form , cl... | scientists divided people into 3 groups . group 1 watched tv . group 2 listened to music . | could you please cite the research referenced in the 'music/tv/doing ' study ? |
welcome back ! in activity one , you learned that our brains are designed to grow . now we ’ ll supercharge that growth by setting a goal . directions : read the full article and complete the reflection form at the bottom to earn your badge and add learnstorm progress for your class . to access the reflection form , cl... | pause and reflect take ~2 minutes to write about a subject or something outside of school that is challenging for you . why is learning that thing important or valuable to you ? challenging your brain take a look at the experiment below that illustrates why challenging your brain is the best way to grow it . | what category would learning a different language fall under ? |
welcome back ! in activity one , you learned that our brains are designed to grow . now we ’ ll supercharge that growth by setting a goal . directions : read the full article and complete the reflection form at the bottom to earn your badge and add learnstorm progress for your class . to access the reflection form , cl... | to access the reflection form , click the blue `` start reflection '' button near the bottom of the article . the brain is like a muscle the brain is like a muscle . it weighs about 3 pounds , but it uses up 20 % of your oxygen and blood . | what side of are brain do we use most for math ? |
welcome back ! in activity one , you learned that our brains are designed to grow . now we ’ ll supercharge that growth by setting a goal . directions : read the full article and complete the reflection form at the bottom to earn your badge and add learnstorm progress for your class . to access the reflection form , cl... | to access the reflection form , click the blue `` start reflection '' button near the bottom of the article . the brain is like a muscle the brain is like a muscle . it weighs about 3 pounds , but it uses up 20 % of your oxygen and blood . | my brain makes my head feel heavy why ? |
welcome back ! in activity one , you learned that our brains are designed to grow . now we ’ ll supercharge that growth by setting a goal . directions : read the full article and complete the reflection form at the bottom to earn your badge and add learnstorm progress for your class . to access the reflection form , cl... | to access the reflection form , click the blue `` start reflection '' button near the bottom of the article . the brain is like a muscle the brain is like a muscle . it weighs about 3 pounds , but it uses up 20 % of your oxygen and blood . | is the right side of the brain we mainly use ? |
overview texas was annexed by the united states in 1845 and became the 28th state . until 1836 , texas had been part of mexico , but in that year a group of settlers from the united states who lived in mexican texas declared independence . they called their new country the republic of texas , which was an independent c... | president john tyler made the annexation of texas a priority , and in the closing days of his presidency , congress voted to make texas a state—though it was not until december 1845 that , under president james k. polk , texas formally achieved statehood . the mexican-american war but the united states ’ annexation of ... | can you show me a map of the states and territories at the end of the american- mexican war ? |
overview texas was annexed by the united states in 1845 and became the 28th state . until 1836 , texas had been part of mexico , but in that year a group of settlers from the united states who lived in mexican texas declared independence . they called their new country the republic of texas , which was an independent c... | president john tyler made the annexation of texas a priority , and in the closing days of his presidency , congress voted to make texas a state—though it was not until december 1845 that , under president james k. polk , texas formally achieved statehood . the mexican-american war but the united states ’ annexation of ... | can you show me a map of the states and territories at the end of the american- mexican war ? |
overview texas was annexed by the united states in 1845 and became the 28th state . until 1836 , texas had been part of mexico , but in that year a group of settlers from the united states who lived in mexican texas declared independence . they called their new country the republic of texas , which was an independent c... | in the end , texas was admitted to the united states a slave state . the annexation of texas contributed to the coming of the mexican-american war ( 1846-1848 ) . the conflict started , in part , over a disagreement about which river was mexico ’ s true northern border : the nueces or the rio grande . | was the mexican-american war considered a great war of the world ? |
overview texas was annexed by the united states in 1845 and became the 28th state . until 1836 , texas had been part of mexico , but in that year a group of settlers from the united states who lived in mexican texas declared independence . they called their new country the republic of texas , which was an independent c... | citizens of the new republic were overwhelming in favor of texas becoming a state in the united states—many motivated in part by concern that mexico might try to re-establish its oppressive rule over texas . texas becomes the 28th state during the years leading up to texas ’ s becoming the 28th state , pro-slavery and ... | so is this saying that slavery is the sole cause of the civil war ? |
overview texas was annexed by the united states in 1845 and became the 28th state . until 1836 , texas had been part of mexico , but in that year a group of settlers from the united states who lived in mexican texas declared independence . they called their new country the republic of texas , which was an independent c... | overview texas was annexed by the united states in 1845 and became the 28th state . until 1836 , texas had been part of mexico , but in that year a group of settlers from the united states who lived in mexican texas declared independence . | had texans wanted to be annexed into the united states or was there no choice ? |
overview texas was annexed by the united states in 1845 and became the 28th state . until 1836 , texas had been part of mexico , but in that year a group of settlers from the united states who lived in mexican texas declared independence . they called their new country the republic of texas , which was an independent c... | the conflict started , in part , over a disagreement about which river was mexico ’ s true northern border : the nueces or the rio grande . the republic of texas mexico won independence from spain in 1821 . at that time , mexico ’ s northern provinces included california , new mexico , and texas . when mexico founded t... | why congress and mexico fought for control for texas for what reason ? |
overview texas was annexed by the united states in 1845 and became the 28th state . until 1836 , texas had been part of mexico , but in that year a group of settlers from the united states who lived in mexican texas declared independence . they called their new country the republic of texas , which was an independent c... | citizens of the new republic were overwhelming in favor of texas becoming a state in the united states—many motivated in part by concern that mexico might try to re-establish its oppressive rule over texas . texas becomes the 28th state during the years leading up to texas ’ s becoming the 28th state , pro-slavery and ... | democrats and whigs , who is pro-slavery and who is anti-slavery ? |
key points genetic drift is a mechanism of evolution in which allele frequencies of a population change over generations due to chance ( sampling error ) . genetic drift occurs in all populations of non-infinite size , but its effects are strongest in small populations . genetic drift may result in the loss of some all... | although genetic drift happens in populations of all sizes , its effects tend to be stronger in small populations . genetic drift example let 's make the idea of drift more concrete by looking at an example . as shown in the diagram below , we have a very small rabbit population that 's made up of $ 8 $ brown individua... | are there cases known of people who had ( by example ) purple eyes , a dotted skin or so but they extinct by genetic drift ? |
key points genetic drift is a mechanism of evolution in which allele frequencies of a population change over generations due to chance ( sampling error ) . genetic drift occurs in all populations of non-infinite size , but its effects are strongest in small populations . genetic drift may result in the loss of some all... | genetic drift example let 's make the idea of drift more concrete by looking at an example . as shown in the diagram below , we have a very small rabbit population that 's made up of $ 8 $ brown individuals ( genotype bb or bb ) and $ 2 $ white individuals ( genotype bb ) . initially , the frequencies of the b and b al... | two questions : 1 if you get a bb and a bb genotype , what is the result ? |
key points genetic drift is a mechanism of evolution in which allele frequencies of a population change over generations due to chance ( sampling error ) . genetic drift occurs in all populations of non-infinite size , but its effects are strongest in small populations . genetic drift may result in the loss of some all... | genetic drift example let 's make the idea of drift more concrete by looking at an example . as shown in the diagram below , we have a very small rabbit population that 's made up of $ 8 $ brown individuals ( genotype bb or bb ) and $ 2 $ white individuals ( genotype bb ) . initially , the frequencies of the b and b al... | 2 if one of your parent`s have an bb genotype , do you get a b or a b genotype from that parent ? |
key points genetic drift is a mechanism of evolution in which allele frequencies of a population change over generations due to chance ( sampling error ) . genetic drift occurs in all populations of non-infinite size , but its effects are strongest in small populations . genetic drift may result in the loss of some all... | in this article , we ’ ll examine genetic drift , an evolutionary mechanism that produces random ( rather than selection-driven ) changes in allele frequencies in a population over time . what is genetic drift ? genetic drift is change in allele frequencies in a population from generation to generation that occurs due ... | how could genetic drift ever create some type of allele that hampers a species or organism from living or reproducing ? |
key points genetic drift is a mechanism of evolution in which allele frequencies of a population change over generations due to chance ( sampling error ) . genetic drift occurs in all populations of non-infinite size , but its effects are strongest in small populations . genetic drift may result in the loss of some all... | if you flip a coin a few hundred times , on the other hand , you had better get something quite close to $ 50 $ $ \mbox { - } $ $ 50 $ ( or else you might suspect you have a doctored coin ) ! allele benefit or harm does n't matter genetic drift , unlike natural selection , does not take into account an allele ’ s benef... | would n't natural selection kick in over a few generations and take out the gene hampering these actions , no matter the severity of the genetic drift , or bottleneck event ? |
key points genetic drift is a mechanism of evolution in which allele frequencies of a population change over generations due to chance ( sampling error ) . genetic drift occurs in all populations of non-infinite size , but its effects are strongest in small populations . genetic drift may result in the loss of some all... | also , the small size of the new colonies means they will experience strong genetic drift for generations . summary unlike natural selection , genetic drift does not depend on an allele ’ s beneficial or harmful effects . instead , drift changes allele frequencies purely by chance , as random subsets of individuals ( a... | does this mean that evolution can actually take a step back in cases were adaptive genes are lost and genes with harmful effects stay ? |
key points genetic drift is a mechanism of evolution in which allele frequencies of a population change over generations due to chance ( sampling error ) . genetic drift occurs in all populations of non-infinite size , but its effects are strongest in small populations . genetic drift may result in the loss of some all... | the new colony is isolated from the original population , and the founding individuals may not represent the full genetic diversity of the original population . that is , alleles in the founding population may present at different frequencies that in the original population , and some alleles may be missing altogether ... | and the new population consists of 2 blue alleles ,2 yellow alleles and 2 red alleles.will it still be called a founder effect ? |
what is world history ? when starting a world history course , you might be wondering , “ how can i cover the history of the entire world in one school year ? ” well , that ’ s a very good question ! learning the history of everything would take quite a while—certainly more than one school year . luckily , that ’ s not... | what is world history ? when starting a world history course , you might be wondering , “ how can i cover the history of the entire world in one school year ? ” well , that ’ s a very good question ! | what are some of the main differences between ap world history and regular world history ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | `` , and then the property name : `` ` var aboutwinston = { hometown : `` mountain view , ca '' , hair : `` no '' } ; text ( `` winston is from `` + aboutwinston.hometown , 100 , 100 ) ; text ( `` winston has `` + aboutwinston.hair + `` hair '' , 100 , 150 ) ; `` ` we can also use `` bracket notation '' , which looks s... | how to add a new property to each object to store a color , using the color command , and use that to fill each book differently ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | ' ) ; } `` ` notice that we iterate through an array of objects the same way that we iterate through an array of numbers or strings , using a for loop . inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notatio... | and can we also delete an array element from an array ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | for example , an array of cats : `` ` var mycats = [ { name : `` lizzie '' , age : 18 } , { name : `` daemon '' , age : 1 } ] ; for ( var i = 0 ; i & lt ; mycats.length ; i++ ) { var mycat = mycats [ i ] ; println ( mycat.name + ' is ' + mycat.age + ' years old . ' ) ; } `` ` notice that we iterate through an array of ... | would anyone be willing to offer me a detailed description of what the role of `` s '' and `` i '' are in my for loop in the bookshelf project ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | here's my tip for you : just do n't use whitespace in your property names to begin with ! then you never have to use quote marks around property names . accessing object properties an object is not useful unless we can look inside it and grab the values of the different properties . | why does last property of lizziethecat , year , has no qoutes around it ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! | excuse me , but what is the debug ( ) command for ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | an object is a data type that lets us store a collection of properties in a single variable . to create an object , we declare a variable like we normally would , and then we use curly braces to surround key-value property pairs : var objectname = { propertyname : propertyvalue , propertyname : propertyvalue , ... } ; ... | why do some things with curly braces have a ' ; ' after the second curly brace ( such as defining a function ) , and others do n't , for example 'for ' and 'while ' loops ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | ' ) ; } `` ` notice that we iterate through an array of objects the same way that we iterate through an array of numbers or strings , using a for loop . inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notatio... | can you make a fill color an object in an array ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | ' ) ; } `` ` notice that we iterate through an array of objects the same way that we iterate through an array of numbers or strings , using a for loop . inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notatio... | what 's the difference between an object and an array ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we can also add entirely new properties ! aboutwinston.lifegoal = `` teach javascript '' ; if we 're done with a property , we can delete it ( but most of the time we 'll probably just change its value ) : delete aboutwinston.hair ; arrays of objects now that you know both arrays and objects , you can combine them to m... | in the arrays of objects examples , what is the reason for creating the mycat and position variables , rather than sticking with the mycats and and positions variables ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | var lizziethecat = { age : 18 , furcolor : `` grey '' , likes : [ `` catnip '' , `` milk '' ] , birthday : { `` month '' : 7 , `` day '' : 17 , year : 1994 } } ; notice how each property stores a different data type- age stores a number , furcolor stores a string , likes stores an array , and birthday stores another ob... | is there a better way to store color value than creating 3 different objects ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a single variable . to create an object , we declare a variable like we n... | why is the variable in for loops usually i ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | for example , an array of cats : `` ` var mycats = [ { name : `` lizzie '' , age : 18 } , { name : `` daemon '' , age : 1 } ] ; for ( var i = 0 ; i & lt ; mycats.length ; i++ ) { var mycat = mycats [ i ] ; println ( mycat.name + ' is ' + mycat.age + ' years old . ' ) ; } `` ` notice that we iterate through an array of ... | do people who speak other languages learn the commands in english , or is there a way to to change the language ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we can also add entirely new properties ! aboutwinston.lifegoal = `` teach javascript '' ; if we 're done with a property , we can delete it ( but most of the time we 'll probably just change its value ) : delete aboutwinston.hair ; arrays of objects now that you know both arrays and objects , you can combine them to m... | i 'm curious , are you able to use .push in order to update objects , or is that strictly used for arrays ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | you might also see objects declared using quotes around the property names , like : var aboutwinston = { `` hometown '' : `` mountain view , ca '' , `` hair '' : `` no '' } ; that 's equivalent to what we saw before with no quote marks , but it takes longer to type . the only time that you absolutely need quote marks i... | i did n't understand the difference between a method and property so i surfed the net now i just reassure that i understood right is the difference between method and property is that ... if you call the property it would call the `` text '' of the function but if you call the method the computer will make the operatio... |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | for example , an array of cats : `` ` var mycats = [ { name : `` lizzie '' , age : 18 } , { name : `` daemon '' , age : 1 } ] ; for ( var i = 0 ; i & lt ; mycats.length ; i++ ) { var mycat = mycats [ i ] ; println ( mycat.name + ' is ' + mycat.age + ' years old . ' ) ; } `` ` notice that we iterate through an array of ... | can i use the push function to add more objects to an array ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notation . here 's another practical example that you might use in your programs , an array of coordinate positions : `` ` var positions = [ { x : 200 , y : 100... | } ] ; fill ( 84 , 140 , 209 ) ; textalign ( center , center ) ; textsize ( 20 ) ; text ( movies [ 0 ] .title , 200 , 50 ) ; textsize ( 10 ) ; text ( movies [ 1 ] .review,200,80 ) ; and i get this error undefined is not an object ( evaluating '_env_.movies [ 1 ] .review ' ) why ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed by a `` . `` , and then the property name : `` ` var aboutwinston = { hometown : `` mountain view , ca '' , hair : `` no '' } ; text ( `` winston is from `` + aboutwinston.hometown , 100 , 100 ) ... | why is var winston = { friends : { } likes : { } } incorrect ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | an object is a data type that lets us store a collection of properties in a single variable . to create an object , we declare a variable like we normally would , and then we use curly braces to surround key-value property pairs : var objectname = { propertyname : propertyvalue , propertyname : propertyvalue , ... } ; ... | if i want to create an image like a star , can i save it to the image library ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | `` , and then the property name : `` ` var aboutwinston = { hometown : `` mountain view , ca '' , hair : `` no '' } ; text ( `` winston is from `` + aboutwinston.hometown , 100 , 100 ) ; text ( `` winston has `` + aboutwinston.hair + `` hair '' , 100 , 150 ) ; `` ` we can also use `` bracket notation '' , which looks s... | in the book shelf project , i wanted to add 2 features that i need help with : 1- the text ( ) command , how can i show only up to cerain charachter in the output ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | the only time that you absolutely need quote marks is if your property name has a whitespace in it , like : var aboutwinston = { `` his hair '' : `` none '' } ; we have to use quotes there , because otherwise the javascript interpreter would get confused . here's my tip for you : just do n't use whitespace in your prop... | 2- in order to use images as book covers , is there a way to mask the image ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed by a `` . `` , and then the property name : `` ` var aboutwinston = { hometown : `` mountain view , ca '' , hair : `` no '' } ; text ( `` winston is from `` + aboutwinston.hometown , 100 , 100 ) ... | how do you make your text bold ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | an object is a data type that lets us store a collection of properties in a single variable . to create an object , we declare a variable like we normally would , and then we use curly braces to surround key-value property pairs : var objectname = { propertyname : propertyvalue , propertyname : propertyvalue , ... } ; ... | what sort of instance would you add a category to your object later in the code ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | `` , and then the property name : `` ` var aboutwinston = { hometown : `` mountain view , ca '' , hair : `` no '' } ; text ( `` winston is from `` + aboutwinston.hometown , 100 , 100 ) ; text ( `` winston has `` + aboutwinston.hair + `` hair '' , 100 , 150 ) ; `` ` we can also use `` bracket notation '' , which looks s... | can you also delete variables by putting delete in front of it , just like you can with properties inside objects ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | then you never have to use quote marks around property names . accessing object properties an object is not useful unless we can look inside it and grab the values of the different properties . we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed b... | can someone please explain the different between the burly brackets and the square brackets ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | an object is a data type that lets us store a collection of properties in a single variable . to create an object , we declare a variable like we normally would , and then we use curly braces to surround key-value property pairs : var objectname = { propertyname : propertyvalue , propertyname : propertyvalue , ... } ; ... | if i use square brackets does that define an object ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | var lizziethecat = { age : 18 , furcolor : `` grey '' , likes : [ `` catnip '' , `` milk '' ] , birthday : { `` month '' : 7 , `` day '' : 17 , year : 1994 } } ; notice how each property stores a different data type- age stores a number , furcolor stores a string , likes stores an array , and birthday stores another ob... | what 's the difference between classes and objects in js ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | `` , and then the property name : `` ` var aboutwinston = { hometown : `` mountain view , ca '' , hair : `` no '' } ; text ( `` winston is from `` + aboutwinston.hometown , 100 , 100 ) ; text ( `` winston has `` + aboutwinston.hair + `` hair '' , 100 , 150 ) ; `` ` we can also use `` bracket notation '' , which looks s... | did you forget to add a comma between two parameters ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a single variable . to create an object , we declare a variable like we n... | what 's the difference between an array and an object , i mean .. ca n't we just use a `` { `` and type that ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | so you can have deeply nested objects to describe complex data . you might also see objects declared using quotes around the property names , like : var aboutwinston = { `` hometown '' : `` mountain view , ca '' , `` hair '' : `` no '' } ; that 's equivalent to what we saw before with no quote marks , but it takes long... | how can i submit my results on the 'challenge : movie reviews ' to see where i 'm screwing up ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | to create an object , we declare a variable like we normally would , and then we use curly braces to surround key-value property pairs : var objectname = { propertyname : propertyvalue , propertyname : propertyvalue , ... } ; here 's an object that describes winston - this object has two properties , hometown and hair ... | why is only month and day enclosed in quotes but not year ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | for example , an array of cats : `` ` var mycats = [ { name : `` lizzie '' , age : 18 } , { name : `` daemon '' , age : 1 } ] ; for ( var i = 0 ; i & lt ; mycats.length ; i++ ) { var mycat = mycats [ i ] ; println ( mycat.name + ' is ' + mycat.age + ' years old . ' ) ; } `` ` notice that we iterate through an array of ... | why would a 'for loop ' take too long to run ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! | what does the printin ( ) command do ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we can also add entirely new properties ! aboutwinston.lifegoal = `` teach javascript '' ; if we 're done with a property , we can delete it ( but most of the time we 'll probably just change its value ) : delete aboutwinston.hair ; arrays of objects now that you know both arrays and objects , you can combine them to m... | how do arrays work through different things ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notation . here 's another practical example that you might use in your programs , an array of coordinate positions : `` ` var positions = [ { x : 200 , y : 100... | for ( var i = 0 ; i < positions.length ; i++ ; ) { ellipse ( positions [ i ] .x , positions [ i ] .y , 100 , 100 ) ; } at the end od the review , can this code be instead ran too ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notation . here 's another practical example that you might use in your programs , an array of coordinate positions : `` ` var positions = [ { x : 200 , y : 100... | } , ] ; for ( var i = movies.length ; i < 5 ; i++ ) { fill ( 84 , 140 , 209 ) ; textalign ( center , center ) ; textsize ( 20 ) ; text ( movies [ i ] .title , 200 , 50*i+50 ) ; textsize ( 15 ) ; text ( movies [ i ] .review , 200 , 50*i+80 ) ; } what 's wrong with my code ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | then you never have to use quote marks around property names . accessing object properties an object is not useful unless we can look inside it and grab the values of the different properties . we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed b... | is there a command that sets all the properties in an object to zero at once ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | then you never have to use quote marks around property names . accessing object properties an object is not useful unless we can look inside it and grab the values of the different properties . we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed b... | is println ( ) ; command any different than the text ( ) ; command ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | you might also see objects declared using quotes around the property names , like : var aboutwinston = { `` hometown '' : `` mountain view , ca '' , `` hair '' : `` no '' } ; that 's equivalent to what we saw before with no quote marks , but it takes longer to type . the only time that you absolutely need quote marks i... | what is the difference between javascript and other programming languages like python ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | for example , an array of cats : `` ` var mycats = [ { name : `` lizzie '' , age : 18 } , { name : `` daemon '' , age : 1 } ] ; for ( var i = 0 ; i & lt ; mycats.length ; i++ ) { var mycat = mycats [ i ] ; println ( mycat.name + ' is ' + mycat.age + ' years old . ' ) ; } `` ` notice that we iterate through an array of ... | is there a way to `` push '' an array of objects ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | for example , an array of cats : `` ` var mycats = [ { name : `` lizzie '' , age : 18 } , { name : `` daemon '' , age : 1 } ] ; for ( var i = 0 ; i & lt ; mycats.length ; i++ ) { var mycat = mycats [ i ] ; println ( mycat.name + ' is ' + mycat.age + ' years old . ' ) ; } `` ` notice that we iterate through an array of ... | how do i add an object to an array of objects ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | to create an object , we declare a variable like we normally would , and then we use curly braces to surround key-value property pairs : var objectname = { propertyname : propertyvalue , propertyname : propertyvalue , ... } ; here 's an object that describes winston - this object has two properties , hometown and hair ... | in the following sample code from the fourth paragraph : var lizziethecat = { age : 18 , furcolor : `` grey '' , likes : [ `` catnip '' , `` milk '' ] , birthday : { `` month '' : 7 , `` day '' : 17 , year : 1994 } } ; why is the variable `` year '' not in quotes ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | aboutwinston.lifegoal = `` teach javascript '' ; if we 're done with a property , we can delete it ( but most of the time we 'll probably just change its value ) : delete aboutwinston.hair ; arrays of objects now that you know both arrays and objects , you can combine them to make arrays of objects , which are actually... | so , when objects are members of an array , they do n't have a name ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | an object is a data type that lets us store a collection of properties in a single variable . to create an object , we declare a variable like we normally would , and then we use curly braces to surround key-value property pairs : var objectname = { propertyname : propertyvalue , propertyname : propertyvalue , ... } ; ... | when adding a new property to an object ( like `` aboutwinston.lifegoal = `` teach javascript '' ; '' ) why would you not just add it into the original object rather than adding it in further down the code ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | you might also see objects declared using quotes around the property names , like : var aboutwinston = { `` hometown '' : `` mountain view , ca '' , `` hair '' : `` no '' } ; that 's equivalent to what we saw before with no quote marks , but it takes longer to type . the only time that you absolutely need quote marks i... | i feel silly but what is whitespace ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed by a `` . `` , and then the property name : `` ` var aboutwinston = { hometown : `` mountain view , ca '' , hair : `` no '' } ; text ( `` winston is from `` + aboutwinston.hometown , 100 , 100 ) ... | are these : var hishometown = aboutwinston [ `` hometown '' ] ; var hishair = aboutwinston [ `` hair '' ] ; the same as these : var hishometown = aboutwinston.hometown var hishair = aboutwinston.hair ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! | what is the website of `` tips and thanks '' ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | then you never have to use quote marks around property names . accessing object properties an object is not useful unless we can look inside it and grab the values of the different properties . we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed b... | after you have modified an object , is there any way of displaying/ finding out the contents of that object ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | the only time that you absolutely need quote marks is if your property name has a whitespace in it , like : var aboutwinston = { `` his hair '' : `` none '' } ; we have to use quotes there , because otherwise the javascript interpreter would get confused . here's my tip for you : just do n't use whitespace in your prop... | in the `` getimage '' command , how do i use my own images or use images from other libraries ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we can also add entirely new properties ! aboutwinston.lifegoal = `` teach javascript '' ; if we 're done with a property , we can delete it ( but most of the time we 'll probably just change its value ) : delete aboutwinston.hair ; arrays of objects now that you know both arrays and objects , you can combine them to m... | how do you push objects into arrays of objects ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | for example , an array of cats : `` ` var mycats = [ { name : `` lizzie '' , age : 18 } , { name : `` daemon '' , age : 1 } ] ; for ( var i = 0 ; i & lt ; mycats.length ; i++ ) { var mycat = mycats [ i ] ; println ( mycat.name + ' is ' + mycat.age + ' years old . ' ) ; } `` ` notice that we iterate through an array of ... | if i have an array of objects , does each element of the array have to have the same properties ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed by a `` . `` , and then the property name : `` ` var aboutwinston = { hometown : `` mountain view , ca '' , hair : `` no '' } ; text ( `` winston is from `` + aboutwinston.hometown , 100 , 100 ) ... | how do you make text move with a shape ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | you might also see objects declared using quotes around the property names , like : var aboutwinston = { `` hometown '' : `` mountain view , ca '' , `` hair '' : `` no '' } ; that 's equivalent to what we saw before with no quote marks , but it takes longer to type . the only time that you absolutely need quote marks i... | just wondering , where could i use javascript outside khanacademy ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we can also add entirely new properties ! aboutwinston.lifegoal = `` teach javascript '' ; if we 're done with a property , we can delete it ( but most of the time we 'll probably just change its value ) : delete aboutwinston.hair ; arrays of objects now that you know both arrays and objects , you can combine them to m... | is there a program or app or something that allows me to make stuff javascript ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! | what does an uncaught typeerror mean ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notation . here 's another practical example that you might use in your programs , an array of coordinate positions : `` ` var positions = [ { x : 200 , y : 100... | } ] ; fill ( 84 , 140 , 209 ) ; textalign ( center , center ) ; textsize ( 20 ) ; text ( movies [ 0 ] .title , 200 , 50 ) ; textsize ( 15 ) ; text ( movies.review,200,80 ) ; what 's wrong with my code ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notation . here 's another practical example that you might use in your programs , an array of coordinate positions : `` ` var positions = [ { x : 200 , y : 100... | for ( var i = 0 ; i < 400 ; i++ ) { fill ( 214 , 255 , 219 ) ; rect ( 10 , 20 , 90 , 100 ) ; fill ( 0 , 0 , 0 ) ; text ( book.title , 15 , 29 , 70 , 100 ) ; for ( var j = 0 ; j < book.stars ; j++ ) { image ( getimage ( `` cute/star '' ) , 13 + j * 20 , 90 , 20 , 30 ) ; } } can someone please give me advice on what i sh... |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notation . here 's another practical example that you might use in your programs , an array of coordinate positions : `` ` var positions = [ { x : 200 , y : 100... | instead of writing '' var position = positions [ i ] ; '' could we simply put ellipse ( position.x [ i ] , position.y [ i ] , 100 , 100 ) ; ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notation . here 's another practical example that you might use in your programs , an array of coordinate positions : `` ` var positions = [ { x : 200 , y : 100... | instead of making a new variable : var position = positions [ i ] ; ellipse ( position.x , position.y , 100 , 100 ) ; ca n't we just put in positions { i } .x ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! | how to draw more shelves down the canvas in project : bookshelf ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! | what is the % operator ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we can also add entirely new properties ! aboutwinston.lifegoal = `` teach javascript '' ; if we 're done with a property , we can delete it ( but most of the time we 'll probably just change its value ) : delete aboutwinston.hair ; arrays of objects now that you know both arrays and objects , you can combine them to m... | can someone explain if there is a difference between arrays and objects ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | to create an object , we declare a variable like we normally would , and then we use curly braces to surround key-value property pairs : var objectname = { propertyname : propertyvalue , propertyname : propertyvalue , ... } ; here 's an object that describes winston - this object has two properties , hometown and hair ... | are we looking at the same thing from different angles ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notation . here 's another practical example that you might use in your programs , an array of coordinate positions : `` ` var positions = [ { x : 200 , y : 100... | } ] ; var pos = [ { x : 30 , y : 50 } , { x : 50 , y : 100 } ] ; for ( var i = 0 ; i < pos.length ; i++ ) { fill ( 84 , 140 , 209 ) ; textalign ( center , center ) ; textsize ( 20 ) ; text ( movies [ 0 ] .title , 200 , 10*pos+20 ) ; textsize ( 20 ) ; text ( movies [ 0 ] .review , 200 , 20*pos+30 ) ; } can somebody help... |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | accessing object properties an object is not useful unless we can look inside it and grab the values of the different properties . we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed by a `` . `` , and then the property name : `` ` var aboutwinsto... | what 's the difference between using printin ( ) ; and text ( ) ; ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | we can also add entirely new properties ! aboutwinston.lifegoal = `` teach javascript '' ; if we 're done with a property , we can delete it ( but most of the time we 'll probably just change its value ) : delete aboutwinston.hair ; arrays of objects now that you know both arrays and objects , you can combine them to m... | is there a way to delete objects within arrays of objects ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | for example , an array of cats : `` ` var mycats = [ { name : `` lizzie '' , age : 18 } , { name : `` daemon '' , age : 1 } ] ; for ( var i = 0 ; i & lt ; mycats.length ; i++ ) { var mycat = mycats [ i ] ; println ( mycat.name + ' is ' + mycat.age + ' years old . ' ) ; } `` ` notice that we iterate through an array of ... | how do you get the array to display the different colors for each book ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | aboutwinston.lifegoal = `` teach javascript '' ; if we 're done with a property , we can delete it ( but most of the time we 'll probably just change its value ) : delete aboutwinston.hair ; arrays of objects now that you know both arrays and objects , you can combine them to make arrays of objects , which are actually... | what exactly does the `` var mycat = mycats [ i ] ; '' in the second to last code do ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | to create an object , we declare a variable like we normally would , and then we use curly braces to surround key-value property pairs : var objectname = { propertyname : propertyvalue , propertyname : propertyvalue , ... } ; here 's an object that describes winston - this object has two properties , hometown and hair ... | in this object : birthday : { `` month '' : 7 , `` day '' : 17 , year : 1994 } why are the first two variables written with between brackets and the third one without ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | then you never have to use quote marks around property names . accessing object properties an object is not useful unless we can look inside it and grab the values of the different properties . we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed b... | how to create an object dynamically ( inside a loop or function ) and add it dynamically to an object array ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | then you never have to use quote marks around property names . accessing object properties an object is not useful unless we can look inside it and grab the values of the different properties . we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed b... | what is the difference between a function and an object ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notation . here 's another practical example that you might use in your programs , an array of coordinate positions : `` ` var positions = [ { x : 200 , y : 100... | for ( var j=0 ; yshelf < 400 ; j++ ) { fill ( 173 , 117 , 33 ) ; rect ( 0 , yshelf , width , 10 ) ; for ( var i=0 ; i < book.length ; i++ ) { fill ( 214 , 255 , 219 ) ; rect ( xposition , yposition , 80 , 80 ) ; xposition+=100 ; fill ( 0 , 0 , 0 ) ; } yshelf+=100 ; yposition+=100 ; } why does the above code not generat... |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | then you never have to use quote marks around property names . accessing object properties an object is not useful unless we can look inside it and grab the values of the different properties . we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed b... | how do i put a function into an object ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | for example , an array of cats : `` ` var mycats = [ { name : `` lizzie '' , age : 18 } , { name : `` daemon '' , age : 1 } ] ; for ( var i = 0 ; i & lt ; mycats.length ; i++ ) { var mycat = mycats [ i ] ; println ( mycat.name + ' is ' + mycat.age + ' years old . ' ) ; } `` ` notice that we iterate through an array of ... | what does it mean use your loop variable to determine what element of the array to display ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | ' ) ; } `` ` notice that we iterate through an array of objects the same way that we iterate through an array of numbers or strings , using a for loop . inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notatio... | how can i call an array in an object ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | then you never have to use quote marks around property names . accessing object properties an object is not useful unless we can look inside it and grab the values of the different properties . we can do that two ways - first , using what we call `` dot notation '' , where we write the name of the variable , followed b... | how can i make each book in a loop a different color ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | the only time that you absolutely need quote marks is if your property name has a whitespace in it , like : var aboutwinston = { `` his hair '' : `` none '' } ; we have to use quotes there , because otherwise the javascript interpreter would get confused . here's my tip for you : just do n't use whitespace in your prop... | how can i use the boolean property to make the values in my array of objects either true or false ? |
this is a review of what we covered in this tutorial on objects . we have many types of values that we can store in javascript variables , and sometimes we want to store a bunch of related values together : that 's where objects come in ! an object is a data type that lets us store a collection of properties in a singl... | inside each iteration , we access the current array element with bracket notation , and then access the properties of that array element ( an object ) with dot notation . here 's another practical example that you might use in your programs , an array of coordinate positions : `` ` var positions = [ { x : 200 , y : 100... | this is my code : var book = [ { title : `` the giver '' , stars : 4 } , { title : `` eragon '' , stars : 4 } ] ; // draw shelf fill ( 173 , 117 , 33 ) ; rect ( 0 , 120 , width , 10 ) ; // draw one book fill ( 214 , 255 , 219 ) ; rect ( 10 , 20 , 90 , 100 ) ; fill ( 0 , 0 , 0 ) ; text ( book.title , 15 , 29 , 70 , 100 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.