JavaScript for WordPress Forums Gutenberg Development 04.02 Ex Static Block re: const shoutOut =

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #92305
    chrissbm
    Participant

    I’m practicing and the plugin/block was breaking when return( {shoutOut} );
    Using return( ( shoutOut) ); worked.

    In the video, I wasn’t sure if this was intended as part of “practice” or not. But I wanted to understand a little more. Anyway, I could see you used {} in the video.

    Anyway.. learning a ton! Thanks


    Chris

    #92383
    Zac Gordon
    Keymaster

    Hi Chris!

    What are you are likely seeing is Object Destructuring, which is just part of JavaScript syntax.

    It get’s explained a bit in the course, but I have a more indepth video on it here if you like:

    1.8.10.14 – Destructuring Objects [6:42]

    #92502
    chrissbm
    Participant

    Okay, thanks. I am considering the yearly/annual option.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.