221 Answered Questions for the topic javascript
Javascript Coding
04/16/20
JavaScript functions
This is not really the question. But what would the template look like for something like this so that I can apply to questions??Write some code to do the following:
Write a function theMean that...
more
Javascript
03/30/20
Create user-defined class which will provide two methods:• setData – to get two numbers from user• showResult – to calculate the division of entered numbers.
the ArithmeticException and NumberFormatException.
Javascript
02/12/20
How to remove a specific property from an object ?
I have a user object having the following properties:let user = { name: "john", pin: 45, gender: "Male", updated: "Yes", active: true,};Now I want to remove pin completely from the object. So...
more
01/03/20
I'm at X,Y - target at X,Y - How calculate angle to face target?
Hello there!
I am at 10, 25 (x,y)
target at 5, -10 (x,y)
I'm facing 0º
How can I calculate the correct angle to face the target?About this question: I am building a script on javascritp, so I...
more
01/01/20
How to check if an Object has a Property
Suppose we have the following javascript object:
var...
more
Adding operable links in HTML5 within a drop down menu.
Hello,I am currently designing a ten page website composing of HTML5, JavaScript, and Css3. I have my index .html page and my services.html page. However, I have created a drop down menu of each...
more
11/21/19
Simple Adder HTML JavaScript
Create the form structure shown in Figure 2, below. Write a JavaScript function according to the following requirements. A user should be allowed to enter two numbers in text boxes. When a user...
more
11/21/19
JavaScript Form Validation
4. Create the form structure shown in Figure 2, below. Write a JavaScript function according to the following requirements. A user should be allowed to enter his/her Fist name in a text box and...
more
11/19/19
Javascript functions
Write a JavaScript function to calculate difference of square values of two numbers passed as function arguements and to display the absolute value of it in an alert box.<script> function...
more
11/17/19
CSS - Selecting the first bold word of all paragraphs
write the required external CSS rules for the following : Set the font size and font style , of the first bold word of all the paragraphs in a document into 14px and italic respectively.
11/17/19
JavaScript Form Validation
Question :Create the form structure shown below and write a JavaScript function satisfy the followingrequirements. The Name and the email address are required fields while entering data. Number...
more
Javascript Coding
11/13/19
Coding help on Google Docs Add-on
So I'm in the midst of trying to learn code (which I'm kind of bad at). I'm trying to code something to alert me when someone edits a shared google doc. I know that there's this google add-on thing...
more
Javascript
10/18/19
Javascript Coding Help
Create an array that stores the names of five dogs.Using a loop, evaluate an array index for even numbers. If the value is even, then output "dog name is a good dog", and if it is an odd number,...
more
Javascript
10/02/19
Javascript Help!!!!
1) Create a file called dayOfWeek.js 2) Write javaScript code that will display the current Day of the Week and the next day. ex) "Today is Wednesday and tomorrow is Thursday" if it is Wednesday....
more
08/05/19
How can I dynamically attach a scripting label to a newly created item in basil.js?
Is there a way to add scripting labels to PageItems that are created in code, i.e. without using the Scripting Label panel?
My code looks like this:
var tf = b.text("Hello World", 200, 200,...
more
07/29/19
How to properly manage "business" constants with AngularJS?
I'm working with AngularJS on a browser game and I have a bunch of "business" constants.These constants will be often updated during game testing (game balancing) and are used by different...
more
07/29/19
Is having a parent controller to manage a set of tabbed sections an anti-pattern for an angular application?
A lot of times, I have long forms that I divide into multiple tabbed sections. Each section is managed by it's own controller and there is a parent controller that manages the whole view. I use...
more
How do I create a modal service with AngularJS?
I'm trying to make a service that's polymorphic based upon what mode is specified in the URL. If the char param in the route is set to 'p', I want to use a PresentMode service. If the char param is...
more
07/29/19
What is a good method of storing test data for development and unit testing with angularjs and jasmine?
What is a good method of storing JSON data/objects for development and unit testing with angular and jasmine?I have seen some ways of accomplishing this. However, since I am new to unit testing...
more
07/29/19
Structuring a Game with Angular.JS?
For a GameJam I'm trying to code a simple web-based text adventure game with sprites and small animations in AngularJS. I'm a little new to Angular and am having some trouble figuring out how to...
more
How can I team up two MVC frameworks without having them fight each other?
I'm creating a CRUD-based web project, and am thinking about using a server side MVC framework (such as CodeIgniter or Laravel) in tandem with a client side MVC framework (such as AngularJS). Is...
more
How and where to test if the JSON request objects generated by the front-end is valid?
We have built a complex Angular application that sends multiple HTTP request to a REST service that is also built in house. Since both the frontend and the backend is being developed in parallel,...
more
07/29/19
Best practice for angular service return value?
I have a number of angular services (e.g. a user service) which make various HTTP calls and I'm wondering what the best practice would be for handling errors. For example, I could do: function...
more
07/11/19
How Could One Write This Basic PAINT Statement in JavaScript?
In BASIC there is a command called PAINT that looks like this:
PAINT (column, row), color, color-stop
It takes x/y coordinates as a starting place and begins filling it and the surrounding...
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.