Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question Hello so i have to do a function that when i call it has to show me the Student information and i have to call
Tag: function
Unexpected token, expected , (8:21)
So I’m working with this code for a blockchain mining class And I keep getting this error Unexpected token, expected , (8:21), for this line: Any help will be appreciated! Answer Try Using this Seems to me like you key:value pairs are not properly formatted.. The code in probably taking this above line as Key and is expecting a value
How to set up a function dynamically without calling it in javascript?
I have a function which calls multiple functions at the same time and waits until all of them are finished. It’s working as intended. It’s labeled as parallel below I’ve got an array which I want to map into a function with the param for each value in the array. However as you might imagine, the function is being called
Javascript – Eventlistener function not working, toggle opacity on click
In the box I want it to say Hi, but when you click on the div “hi” it will instead toggle the div with “bye” using opacity. My design is not actually with text but svg paths, so this was the best way to translate what I need help with, without having to much code in the snippet (as the
Javascript – make function in object global
Let’s say I have an object obj with a function f1 that accept two parameters a and b. The function is called as follows: Now I want to make f1 accessible without calling obj as follows: Is this possible? If so, how may I achieve this? Edit: If yes, is there a way to make all functions in the object
Vuex Method-style Access Getters
I am having a bit hard time understanding the following JS: These two code snippets are taken from official Vuex Documentation on Method Style Access for Getters. Now what I dont understand is, how those the second part of code output the value in the comment? Maybe I miss-understood JS functions? I believe the output would be: So actually the
How to pass array inputs as parameter to async function?
I got set of urls from txt file [which I am having in my local] which I got as array inputs with below code Sample output when I do console.log(testurls) [ ‘https://sample1.com’ ‘https://sample2.com’ ] How to pass the values to below function as parameter/argument to run scan on each url one after other as I am trying to some performance
While printing my function, the string is printing out a double set of commas?
The assignment is to create our own snap-crackle game from a function. I believe I did step one of this correctly, now I’m on step two, and it’s printing what I want it to print, but the string has …
Javascript increment a variable in a function
Hey guys I’m new to programming, I need to make a website for school. I want to open the next page when pressing the arrow keys. So I thougt, I can put the URLs into an array an increment the index, when the button is pressed. Unfortunately I get some random numbers from 1 to 3 when I press the
I need to write difficult palindrome
That’s my example. String are given. Implement a function – detectPalindrom, that can detect palindrome string. Given argument not an string – return ‘Passed argument is not a string’. Given string is empty – return ‘String is empty’. Given string palindrome – return ‘This string is palindrome!’. Given string is not a palindrome – return ‘This string is not a