Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Slide 55: Objects: Fixed - using "=" inside object instead of ":" #1

Merged
merged 1 commit into from

2 participants

@rishabhsrao

The example below (on Slide 55 of the presentation) was using = instead of : for assignment:

myObject2 = {
    foo : "Foo", 
    bar : "Bar", 
    anotherObject : {
        baz : "Baz", 
        pez = "Pez"
    }
}; //this is called an object literal pattern

Thanks!

@rishabhsrao rishabhsrao Slide 55: Objects: Fixed - using = inside object
Slide 55: Objects: Fixed - using = inside object
The below example was using "=" instead of ":" for assignment:

myObject2 = {
    foo : "Foo", 
    bar : "Bar", 
    anotherObject : {
        baz : "Baz", 
        pez = "Pez"
    }
}; //this is called an object literal pattern
5ac3009
@bittersweetryan bittersweetryan merged commit 572457f into bittersweetryan:master
@bittersweetryan

Nice catch, thanks!

@rishabhsrao

Sure, you're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 24, 2012
  1. @rishabhsrao

    Slide 55: Objects: Fixed - using = inside object

    rishabhsrao authored
    Slide 55: Objects: Fixed - using = inside object
    The below example was using "=" instead of ":" for assignment:
    
    myObject2 = {
        foo : "Foo", 
        bar : "Bar", 
        anotherObject : {
            baz : "Baz", 
            pez = "Pez"
        }
    }; //this is called an object literal pattern
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.html
View
2  index.html
@@ -497,7 +497,7 @@
bar : "Bar",
anotherObject : {
baz : "Baz",
- pez = "Pez"
+ pez : "Pez"
}
}; //this is called an object literal pattern</code></pre>
</div>
Something went wrong with that request. Please try again.