Posts by Thiago Outeiro Pereira Damasce • 129 points
8 posts
-
0
votes1
answer1519
viewsQ: Error: "Uncaught Syntaxerror: Unexpected token import" in javascript
good afternoon, I have the following program: testing.html: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title> Testando </title> </head>…
-
1
votes3
answers241
viewsQ: how to pass by value in Javascript
I have the following situation: let a=[{nome:"oi"},{nome:"xau"}] let b=Object.assign([], a) b[0].nome=5 console.log(b) //[{nome:5},{nome:xau}] console.log(a) //[{nome:5},{nome:xau}] A little while…
-
8
votes4
answers158
viewsQ: Javascript pass by value
I have two objects: A and B: var A={valor:0} var B={valor:0} A=B A.valor=5 console.log(B.valor) // 5 would like to know how to pass by value, because Javascript passes by reference the objects, in…
javascriptasked Thiago Outeiro Pereira Damasce 129 -
1
votes3
answers235
viewsQ: arrays equality in Java Script
Good afternoon, I have this little program: let oi=[1,2,3,4] let xau=[] xau=oi xau[2]=7 console.log(oi) my problem is that when on the console the impression that comes out is: [1,2,7,4] according…
-
0
votes1
answer21
viewsQ: Notifications in Polymer
Good morning, I have the following code for my Reader: <link rel="import" href="../polymer/polymer-element.html"> <dom-module id="reader"> <template> <div> <button…
-
0
votes1
answer3378
viewsA: Open CSV file and read its contents
There is a stop called D3.js that serves to help you use data, you can use it by adding: <script src="https://d3js.org/d3.v4.min.js"></script> (here is the github link with information…
-
1
votes1
answer154
viewsQ: Block mouse scroll in Javascript
I made a program using Polymer and within one of the components in a specific area (the caption area of my chart) I want the scroll of the page not to work, is there any way to do this?…
-
1
votes0
answers17
viewsQ: how to access a shadowDom element using D3.js and Polymer
Good afternoon, I’m trying to make a program for denhar a graphic, but I need to delete the graphics and draw it again whenever I update. I’m using D3.js to manipulate svg and Polymer because I’m…