Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Tarification
Équipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
in this case var keyword is not working in function block.why??
javascript
0 Vote
3 Réponses
11th Jun 2020, 7:06 PM
vardhan js
Why i am unable to use global variable in other function?
javascript
var
1 Vote
9 Réponses
5th Mar 2020, 4:43 PM
ABHISHEK
Please what is operands
var
0 Vote
3 Réponses
26th Apr 2018, 5:06 PM
Okechukwu Joshua
Can someone explain this line of code to me? var distance = parseInt(readLine(), 10);
javascript
2 Votes
3 Réponses
14th Jul 2021, 4:42 AM
Josue Mata
What do you do with this? Var x=50; if (x>42){ document.write(x%10)} document.write(42)
challenges
javascript
2 Votes
4 Réponses
22nd May 2017, 10:11 PM
Raz
Discuss Module 7 Quiz 1/6 Fill in the blanks to change the content of all paragraph tags of the page to "SoloLearn". var arr =
javascript
8 Votes
28 Réponses
27th Jan 2017, 5:23 AM
VishalYumnam
How to add var to the list in other list?
lists
python
0 Vote
1 Réponse
14th Aug 2018, 3:20 PM
Сергей Славский
How would I use a var from inside a function, outside of that function?
beginner
javascript
0 Vote
10 Réponses
22nd Jul 2017, 12:02 AM
Danj Wood
How To scan input as a path in string var in java?
java
1 Vote
2 Réponses
26th Jun 2022, 6:03 AM
RTB
if var is declare in global so why can't use in function?
php
variables
0 Vote
5 Réponses
16th Aug 2016, 3:46 AM
Ravi Luhar
how come i cant do var z, then do z = x+y
c#
0 Vote
5 Réponses
17th Dec 2016, 5:28 PM
chorditronix
Is anyone able explain modulus in JavaScript to me?
var
0 Vote
1 Réponse
17th Nov 2019, 5:31 PM
Joshua
What is that mean var and when we use it
c#
variables
0 Vote
2 Réponses
16th Aug 2016, 1:03 PM
Rami Salim
What is the better way to define my variable ? Should I use int var = 10 or int var (10) ? = or () ?
c++
variables
0 Vote
4 Réponses
15th Sep 2016, 9:50 AM
MARINA
var a = 8; a = a + a / (a % 3); document.write(a); //output= 12 //do u have any explanation?
var
0 Vote
3 Réponses
17th Jun 2017, 12:09 AM
islam moheb
Why do we use" new" before ARRAY and DATE in declaration??
var
0 Vote
3 Réponses
17th Aug 2017, 6:00 AM
J.SAIKIRAN
can someone explain the x.length-1 in this program and why sum ends up to be 7? var x=[1,4,2,1]; var sum=0; for (i=0;i<x.length-1;i++){ sum+=x[i]; } document.write(sum)
javascript
1 Vote
2 Réponses
16th Sep 2016, 1:23 PM
Mercurius
Are the technique for use var and generic types are closed?
c#
generics
var
0 Vote
3 Réponses
13th Mar 2017, 8:52 PM
Ivaylo Naydenov
Что выводит это код <script> var x='res_x'; let y='res_y'; console.log(this.x); console.log(this.y); </script>
javascript
2 Votes
1 Réponse
5th Jul 2019, 8:48 AM
Muhammad
Why does this code have an output of 8? var z=0; for (var x=0;x<4;x++) { z+=2; } document.write(z);
javascript
operators
variables
2 Votes
22 Réponses
9th Oct 2016, 3:26 PM
Namita
How would I get Math.max to return the var name, not the value?
javascript
math.max
0 Vote
3 Réponses
11th Jun 2020, 10:33 AM
Will
Fill in the blanks to declare an integer variable and set its value of 5. _ var = _;
java
operators
1 Vote
9 Réponses
23rd Nov 2021, 9:27 AM
Roy Duey
Issue: use different var name than str in the example
issue
regular-expressions
-1 Vote
1 Réponse
29th Jan 2021, 3:18 PM
Erik G
Is declaring variables using var in JavaScript preferred over other languages?
data-types
javascript
variables
1 Vote
1 Réponse
20th Apr 2018, 2:46 PM
Miapolis
Does var y = 15; not automatically declare y as an int?
c#
0 Vote
2 Réponses
2nd Sep 2019, 2:50 PM
Nico van der Merwe
Why did they use var instead of arr for the array?
dom
javascript
1 Vote
1 Réponse
16th Feb 2019, 10:22 AM
Natale Pisano
Why size of varible var returns a value of 4?
c++
sizeof
1 Vote
1 Réponse
25th Jan 2018, 9:06 AM
Amit Kumar
var desc: String { return "traveling at \(currentSpeed) mph" }
swift
0 Vote
1 Réponse
11th Dec 2016, 11:24 AM
Sandeep Maurya
how to get css top value in a var in js ?
css
get
js
position
style
var
1 Vote
1 Réponse
29th Jun 2020, 6:57 AM
Divya Mohan
I want to understand this: var x=0 while (x<6) { x ++; } document. write (x); output was 6
js
0 Vote
11 Réponses
12th Jun 2018, 1:25 PM
Favor Mofadeke Salako
why var is not updating in js with setinterval .please check code below.
js
setinterval
update
var
1 Vote
3 Réponses
29th Jun 2020, 10:48 AM
Divya Mohan
why will: Var num; num=42; cause an error while: int myAge; myAge=18; will not? Is it that when working with Var we need to write it like this: Varnum =15; Varnum; number=15;
c#
variables
2 Votes
6 Réponses
23rd Jun 2016, 8:38 AM
Programmer
Please someone tell me why the output of var is 100 and not 20?? 😮
cpp
help
pointers
1 Vote
6 Réponses
6th Apr 2018, 2:46 PM
RiGeL
Can anyone tell me difference between val and var in kotlin in simple term
kotlin
2 Votes
3 Réponses
6th Jul 2018, 3:16 PM
Goutam Malviya
Can't we use var as the return type and data type of parameters?
c#
generics
1 Vote
4 Réponses
15th May 2016, 3:47 PM
Achintya Jaiswal
I get an ERROR (whatever my var is ) cannot be resolved to a variable
arrays
java
loops
1 Vote
8 Réponses
15th Aug 2016, 10:45 PM
Chuckinator
var n = prompt("Enter radius of circle (cm)", ""); var area = n * n * Math.PI; alert("Area of circle is " + area + " cm");
javascript
0 Vote
3 Réponses
22nd Jul 2017, 8:26 AM
Đại Ngư
Shouldn't be the var name be defined before it's use? Please correct me if i am wrong.
c++
encapsulation
1 Vote
14 Réponses
6th Apr 2017, 4:51 AM
Pranav Banerjee
How to create file and save var value in it by js program ?
javascript
js
0 Vote
4 Réponses
26th Dec 2019, 10:33 AM
Anush BUNDELA
Please explain the meaning of this "?" in java language. Using this example int var = (7>5)?7:5;
coding
java
javaprofessionals
professionaldevelopers
programmers
1 Vote
8 Réponses
26th May 2019, 1:50 PM
Iredafe Owolabi
How do i get a var to multiply a number such as 0.01666
decimal
javascript
output
time
0 Vote
3 Réponses
17th Oct 2018, 8:14 AM
Brennan Woodroof
Больше или равно>=
var
0 Vote
1 Réponse
10th Oct 2018, 12:11 AM
Natalia Prasolova
Como puedo reproducir un audio en javascript
var
0 Vote
1 Réponse
2nd Oct 2019, 1:06 PM
PHG
Why bother using generics when we can use var type? Im asking about c#
generics
0 Vote
3 Réponses
11th Mar 2020, 4:05 PM
Emad
how to get input value and set into var selector of jquery?
input
jquery
selectors
variables
1 Vote
1 Réponse
5th Jul 2020, 2:35 PM
Divya Mohan
How can I print value of var n if one of the argument of constructor of a class and var name is same but different values ?
python3
0 Vote
1 Réponse
7th Nov 2020, 6:23 AM
Rajan K
what is object orientation and how to perfect from it in javascript
j++
var
4 Votes
2 Réponses
10th Jul 2020, 7:18 PM
Golooba Zubairi
What is the output of this code? var n1; n1 = true; Console.WriteLine(n1);
c#
variables
0 Vote
1 Réponse
21st Aug 2018, 10:42 AM
Morapedi Khutwane
fun main(args : Array<String>) { var age = readLine (23) println("I'm acutally " + age) }
kotlin
1 Vote
4 Réponses
9th Mar 2021, 9:50 AM
Mehedi Hassan
i defined var x = 0704 ; and the o/p was 452 .can some one explain why
javascript
variables
0 Vote
11 Réponses
18th Apr 2017, 5:22 PM
vineet pokhriyal
Poser une question
Poser une question
Poser une question
Poser une question
< Précédent
1
...
6
7
8
...
12
Suivant >
Aujourd'hui en vedette
New code
1 Votes
Does anyone have the solution for this challenge?
1 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Why does coding take so long to learn
0 Votes
Solved# Survey data format in coding for data
1 Votes
Solved Ai generated practice the last question
0 Votes
How to add unordered lists in HTML.
0 Votes
What is the use of .kt classes in the React Native project
0 Votes
Why is it so hard to get a job as a junior dev? Or just wanting to do an internship.
1 Votes
Kernel in Jupyter
1 Votes