JavaScript fillStyle not a function

I'm getting an unusual error:

ctx_wrap.fillStyle is not a function

on this line:

ctx_wrap.fillStyle('#b8b8b8');

in here:

...
this.paint = function() {
    self.path(ctx_wrap);
    if (!isOver) {
        ctx_wrap.fillStyle('#b8b8b8');
    } else {
        ctx_wrap.fillStyle('#d6d6d6'); 
    }
    ctx_wrap.fill()
    ctx_wrap.stroke();
};
...

What is strange is that, if I comment out that line, the line beneath works. These two lines are nearly identical, but the first one produces the error and the second one works:

ctx_wrap.fillStyle('#b8b8b8');
ctx_wrap.fillStyle('#d6d6d6');

Why would the first line produce the error?

Answer:1

What happens when you do npm install in a dev environment on a project that has both a package.json and a npm-shrinkwrap.json file? Will it ignore the shrinkwrap and use package.json for everything or ...

What happens when you do npm install in a dev environment on a project that has both a package.json and a npm-shrinkwrap.json file? Will it ignore the shrinkwrap and use package.json for everything or ...

  1. shrinkwrap developmental psychology with connect

I have a problem with react components and props. Here's exception below. What I'm doing wrong? Uncaught TypeError: Super expression must either be null or a function, not undefined class ...

I have a problem with react components and props. Here's exception below. What I'm doing wrong? Uncaught TypeError: Super expression must either be null or a function, not undefined class ...

  1. typeerror super expression must either be null
  2. typeerror super expression must either be null or a function
  3. × typeerror super expression must either be null or a function

I need to add a .trash class to every element inside a .secondary-images div, except for one .field--name-rd-page-secondary-image div. I have tried this. $('.secondary-images *').addClass('trash')....

I need to add a .trash class to every element inside a .secondary-images div, except for one .field--name-rd-page-secondary-image div. I have tried this. $('.secondary-images *').addClass('trash')....

I have this ul li html element: <ul id="langMenu" class="top-links list-inline"> <li> <a class="dropdown-toggle no-text-underline" ...

I have this ul li html element: <ul id="langMenu" class="top-links list-inline"> <li> <a class="dropdown-toggle no-text-underline" ...

  1. fetch value from dictionary in python
  2. fetch value from map in java
  3. fetch value from dictionary in c#
  4. fetch value from json object in javascript
  5. fetch value from json object
  6. fetch value from json
  7. fetch value from database in php
  8. fetch value from json array
  9. fetch value from datatable in c#
  10. fetch value from json object in java
  11. fetch value from set in java
  12. fetch value from list in java
  13. fetch value from array in php
  14. fetch value from object in javascript
  15. fetch value from json string in java
  16. fetch value from tuple python
  17. fetch value from map
  18. fetch value from json array in java
  19. fetch value from promise
  20. fetch value from dataset in c#