97 Answered Questions for the topic javascript

03/18/19

Any way to toggle between two strings using one piece of JavaScript?

I want to do something like if(something.val() == 'string1') { something.val('string2'); } else if(something.val() == 'string2') { something.val('string1') } But in one line of code. I... more

03/18/19

Determine if two strings are similar in Javascript?

Let's say I have two strings, is there any way to check if they are at least 90% similar? var string1 = "theBoardmeetstoday,tomorrow51"; var string2 = "Board meets today, tomorrow"; Thanks, Tegan more

03/18/19

Is AngularJs client side or server side?

03/18/19

What is difference between JavaScript and jquery?

03/15/19

need help with this javascript code

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

03/15/19

Why is JavaScript useful for front end developers?

03/14/19

Is react frontend or backend?

03/13/19

Is JavaScript front end or backend?

03/13/19

Source code editor for HTML/CSS/JS with projects support?

I am looking for a source code editor with the support for: - Javascript, HTML, CSS syntax highlighting - Auto-completion, Source formatting (for the above languages) - 'Projects' where you can... more

03/13/19

Is PHP front end or back end?

03/13/19

What is difference between angular js and JavaScript?

03/12/19

What is front end and back end web development?

03/12/19

What is difference between JavaScript and jquery?

01/02/19

Modify a program from Fahrenheit to Celsius and meters to yards

This is about JavaScript and I need write a code similar to the one I was given or worked with in class. I would like help with where to begin.

11/09/18

Hi am new to javascript and would like to know what I did wrong

var User = prompt('Pick Temp Username');//Page always shows the Null message even if the user put something in the boxif (User =! null){document.write('User didnt put username');}else... more

07/05/18

Your Questions What will be the code for complete and responsive shopping cart using HTML and JavaScript?

i want some code in javascript when i add product to cart, it should be like amazon, flipkart and other ecommerce sites.

10/31/16

Does anyone know how to put words into javascript?

The statement is: If the sum of a numbers digit is a multiple of 3, then that number can be divided by 3.  

12/09/15

Javascript

var max = 8;var min = 2;var value = 8;if ( value < max ) {while (value <= max) {value++;}}else {while (value >= min) {value--;}}alert(value);   What value will appear in the alert box?

07/22/15

JavaScipt question

can someone take a look at this please? if me hit once, dragon hits back.   i'ts not doing something right     function Hit() { var damage1 = Me.damage(); var damage2 = Dragon.damage(); var... more

11/14/14

How to I change a switch operation on a string to work in eclipse 1.6?

This is the code I have:   public static double monthly(String month) { switch (month) { case "01": return .5; case "07": return .5; default: return 1; } }   However, eclipse does't allow... more

10/08/14

how would i write a javascript code for a temperature convert?

heres the HTML file: <!DOCTYPE html><html><head> <title>Temperature Converter</title> <script type="text/javascript"... more

02/27/14

Explain when you would use a while loop rather than a for loop and vice versa. Provide an example of one such instance.

Explain when you would use a while loop rather than a for loop and vice versa. Provide an example of one such instance. How are looping statements different from selection statements?
1 2 4

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.