Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
1 answer
81 views

I am using this package, ang-jsoneditor, which contains the below initialization code. @Component({ ... }) export class AppComponent { public editorOptions: JsonEditorOptions; public data: any; /...
0 votes
1 answer
99 views

I have 2 js files - dashboard.js and statuspanel.js. They render React components inside the div that has the name of the script as it's id. For example, in my JSF application. The JS files are auto-...
0 votes
0 answers
28 views

I tried IIFE in js, but its not giving any output if I am not executing any other part of the code in the program except this function(using node) When I tried executing or printing any other thing ...
1 vote
1 answer
83 views

When I write const path = require('path') outside the IIFE function I can't access it inside, but when I write it inside the function I am able to access it. Can anyone explain why is this happening? ...
1 vote
0 answers
43 views

In my journey of learning JavaScript, I encountered my first practical use case for an Immediately Invoked Function Expression (IIFE). However, I'm struggling to understand the distinction between a ...
0 votes
1 answer
503 views

Updates: Here is the complete error my-lib.iife.js?ver=1.0:9 Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following ...
0 votes
1 answer
336 views

I tried to install Puppeteer in a fresh NodeJS project. When I tried to launch a browser and take a screenshot it did not work. I did: make new directory in terminal npm init -y create file index.js ...
1 vote
0 answers
66 views

var arr = [10, 24, 15, 4]; for (var i = 0; i < arr.length; i++) { setTimeout( (function (index) { return function () { console.log("index:" + index + " element: " + arr[index]); ...
1 vote
1 answer
242 views

I have a Javascript file that contains an IIFE. This IIFE returns an object with many utility methods. If I want to convert this to an ES6 module, should I export the containing object or should I put ...
0 votes
0 answers
57 views

I noticed something while playing with Typescript's compiler options. (Typescript is irrelevant here, I'm just using it as a compiler much like babel) So, I have this code in .ts file (function () ...
0 votes
0 answers
41 views

I have an issue with using curveunion to combine curves into one object. Here is the link to my problem: https://jsfiddle.net/aaronamran/nskuy632/4/ Here is the code for the beam class: class beam { ...
0 votes
0 answers
215 views

When making an app to run on a web page with ES6 code, multiple instances of the app have conflicts when using static variables or singletons. Iframes are commonly used and provide code isolation ...
0 votes
1 answer
734 views

I use Webpack 5 in my .net application to bundle my JavaScript and LESS files. I have multiple JavaScript files and need to bundle them into one file. After bundling into one file each separate ...
1 vote
1 answer
50 views

I try to understand why the variable 'Permissions' will be typeof 'function' when Permissions declared with var but typeof 'object' when declared with let (which is the excepted behavior) With 'var' - ...
Edi's user avatar
  • 13
2 votes
1 answer
90 views

(function b() { console.log(b); b = 20; console.log(b); })(); I wrote this JavaScript IIFE. The first console.log logs the function body. Then the b variable is created with value 20. The ...
cooljser's user avatar

15 30 50 per page
1
2 3 4 5
...
49

AltStyle によって変換されたページ (->オリジナル) /