221 Answered Questions for the topic javascript

05/05/19

Is there a javascript library for ppt simulation?

I do know that there're are many server side ppt simulation projects like Slide Show (S9). But is there a javascript library which handles this and with a fairly easy syntax? That would be more... more

04/29/19

WebGL JavaScript 3D Object

I am trying to render a 3D object using WebGL and Javascript and Right now I am getting an error. "test.js:123 Uncaught DOMException: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': The... more
Javascript

04/28/19

What is a “closure” in JavaScript? What is an example?

04/28/19

How do I create and increment a 2 or 3 digit hexadecimal number?

How do I increment the highest hexidecimal number from an array of hexidecimal numbers? My knowledge of hexidecimal is somewhat spotty so any help would be appreciated. And to be perfectly honest I... more

04/28/19

DWG converter for Node.js or Javascript library?

I want to show AutoCAD-files (.DWG) in my AngularJS application and I'm using a Node.js backend for my application. Are there any DWG libraries in Javascript? Are there any DWG Node libraries to... more
Javascript Math Java

04/24/19

represent a positive integer x as the sum of numbers each to the power k. For example, 25 = 3^2 + 4^2.

I need to write a function in Java which would represent a positive integer x as the sum of numbers each to the power k. For example, 25 = 3^2 + 4^2. So, once I feed 25 and 2 as arguments in it, I... more
Javascript

04/21/19

Calculating angle in degrees of mouse movement?

I want to calculate the angle of a mouse movement in degrees. I know you don't have to move the mouse in a straight line, I was just trying to calculate it based on starting and end points to... more

04/20/19

Get current page number in InDesign CS5 from Javascript?

What is the DOM expression to get current page where the cursor is: app.activeDocument.currentPage ?
Javascript

04/20/19

Given a degree x, find the nearest degree in an array of degrees?

I have an array of degrees, [10, 90, 200, 280, 355] for a circle. I'm given a degree, let's say 1. How do I determine that 1 is closest to 355 degrees?
Javascript

04/20/19

Did Tableau make D3.js defunct?

04/20/19

Create PowerPoint with JavaScript?

JavaScript cannot create files locally on the clients filesystem. However, I am wondering, if it is possible to somehow create a PowerPoint MIME in a web page (a div or a iframe) from some JSON and... more
Javascript

04/20/19

Should I learn processing if I know D3.js?

04/18/19

What is Babel JavaScript?

Javascript Web Design Angular Js

04/18/19

What is prop in react?

Javascript

04/12/19

What are different types of Popup boxes available in Javascript?

Javascript Web Design Angular Js

04/12/19

What is component in react JS?

Javascript

04/12/19

What is the difference between let and var?

Javascript Web Design Angular Js

04/05/19

Is MVC a react?

Javascript Web Design Angular Js

04/04/19

What is Webpack in react JS?

Javascript

04/04/19

Circle coordinates to array in Javascript?

What's the best way to add the coordinates of a circle to an array in JavaScript? So far I've only been able to do a half circle, but I need a formula that returns the whole circle to two different... more
Javascript

04/02/19

Check if polygon is inside a polygon?

Yesterday I was looking to check if a point was inside a polygon and found this great script: https://github.com/tparkin/Google-Maps-Point-in-Polygon But today at work I was told that our client... more
Javascript

03/27/19

Rotate a Triangle around its center with JavaScript?

I'm trying to draw an equilateral triangle on a canvas, and then rotate it around its center by 90 degrees once you click the triangle, but for some reason I'm having trouble determining it's... more
Javascript Logic

03/27/19

Can someone explain this JavaScript auto executing function?

var foo = (function(){ var x = 0; return function(){return x++;}; })() Why the var x = 0 expression only runs once is my biggest misunderstanding about this.

03/27/19

Jasmine expect logic (expect A OR B)?

I need to set the test to succeed if one of the two expectations is met: expect(mySpy.mostRecentCall.args[0]).toEqual(jasmine.any(Number)); ... more

03/27/19

Loop through all threadded text frames in JavaScript InDesign script?

I'm trying to create an InDesign script that functions exactly like SplitStory.jsx, only that it won't require first selecting a threaded text frame but instead loops through *everything* that is... more

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.