I have added the JS target for our Kotlin Multi platform project. The project is named STT. When I look at the build folder or when I run the JS task jsRun the JS lib looks empty. Here is for example the stt.js from the build folder That essentially is an empty object However, when I use the BOTH or
how do i remove the onclick function after clicking once
I am very very very very new to any kind of coding whatsoever I’m talkin like I just started tonight kind of new but I still wanted to try my hand at doing things so ill try to explain best I can what I would like to do this is like, what the first image looks like this is my
How to send users to a new web page based off of text input object
I am trying to create a text adventure game. In it, the user types a command in a text input box. Based on the command, they will be sent to another web page. Here’s what I have for HTML:
TypeScript / JavaScript: How to wrap a Promise object using decorator pattern
I’m attempting to wrap a TypeScript (JavaScript) Promise object with the decorator pattern because I need to add additional logic inside the Promise’s then and catch methods (not shown here). So far, it looks like this: However, as noted by the “ERROR!!” comment above, I get this build…
Turn Cursor Effect on/off with a toggle switch?
I am making my portfolio website currently. I have added a flashlight cursor effect from (https://codemyui.com/flashlight-mouse-pointer/). I have also added a toggle switch from codemyui also. I am wondering if anyone knows how to link the effect & toggle together so that when I press the switch – t…
Quiz is not showing questions past question two
I am working on a JavaScript/HTML based quiz in my free time, however I have ran into an issue: It goes up to question 2 then it doesn’t show the next question, I have checked the console for any errors but there are none to be seen. I apologise that it is not the most complex code, I am still
Toggle button JS changing value in LocalStorage
I am trying to create a favourite button next to a list which a person can toggle on and off whenever he wants and store a value inside the localstorage so it will be saved on refresh. How would I create a button which when clicked it will turn yellow and update the localstorage to “favourite”: Tr…
Mixed let/const array destructuring from split string
TS throws an error: When trying to deconstruct this array, after a string split: Hours and minutes should be declared as constants, but Seconds and Millis may change, thus should be declared as let. This can be fixed in many approaches, but I can’t find a beautiful way of doing this. Any ideas? Answer Y…
Can we use GitLab as host for source code with AWS CDK pipeline?
I have a repository in GitLab (Lambda Functions) and want to work with the AWS CDK pipeline (https://aws.amazon.com/blogs/developer/cdk-pipelines-continuous-delivery-for-aws-cdk-applications) to develop CI/CD pipeline. In AWS CDK docs there is nowhere mention about Gitlab. Will really appreciate it if someone…
Javascript unable to handle input from an HTML input tag
I am having trouble getting my javascript code to take an input from my HTML input tag. The basic function of the program is for the user to enter a number, and the program tells the user if their number is positive, negative, or zero. Here is my code: Answer