New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
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 Answers
16th Sep 2016, 1:23 PM
Mercurius
So the basic difference b/w c++ and java is that in c++ class is not necessary and ends with;, main func is outside the calss
c++
class
java
main
syntax
0 Votes
2 Answers
11th Apr 2018, 8:41 AM
Vaishali Tiwari
Do I have to specify position for my footer? It comes up in the page where my page content ends even halfway through the page
css
footer
html5
1 Vote
2 Answers
3rd Dec 2017, 3:29 PM
Usman URIB 🇳🇬
He guys can someone tell me what that mean : you won't be charded until your entil trial ends . I can't finish my course bc oft
...
-1 Vote
2 Answers
29th Jan 2022, 7:58 AM
Ilham AZALAM
Write a program to print bus no brtween 10 to 19 .A bus no is eithervdivisible by 7 and ends with 7 .with java for loop .
java
-3 Votes
3 Answers
9th Jan 2019, 12:17 PM
nishant singh
Which software is used for creating front ends for Java applications ? Is an ide like netbeans alone is enough to create my own Java application ?
java
1 Vote
2 Answers
10th Oct 2016, 6:08 AM
Nantha kumar .R
Why when I run the build does the output screen not stay open? At the same time it ends with a message "ConsoleApp1.exe has exi
c#
methods
multiple
perameters
visualstudio
-1 Vote
2 Answers
5th Jul 2017, 11:30 PM
James Lanier
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
2
Next >
Hot today
Questions
1 Votes
How to access caller class attribute
0 Votes
Please help, have been getting error message since past 3 days now. can't pass this level even when the answer is right.
1 Votes
Code Playground
0 Votes
xampp
0 Votes
How do people have HTML course but i dont
1 Votes
hi is there any group here for python and challenge?
0 Votes
How to solve this
0 Votes
This is where am getting error messages every time. my answer here is @my_dec
1 Votes
Sololearn keeps freezing.
0 Votes