0

Sorry if this is a silly question...I tried searching everywhere and couldn't find what I was looking for...what does (append = false) mean in javascript?

myImages(append = false) {
    if (n>10) {
           console.log("Pass");
    }
    else {
        console.log("Failed");
    }   
};
Liam
  • 27,717
  • 28
  • 128
  • 190
  • [Default parameters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters) – David Oct 06 '20 at 17:07
  • 2
    In this particular function it means nothing at all because the function parameter is not used. Generally it's a way of assigning default values for un-passed function parameters. – Pointy Oct 06 '20 at 17:07
  • Thanks I understand! –  Oct 06 '20 at 17:26

0 Answers0