Click here to Skip to main content
14,661,871 members
Home » Discussions » JavaScript
   

JavaScript

 
QuestionJavaScript slide show works bad on the first page load Pin
Hypnonis8-Jun-20 20:03
MemberHypnonis8-Jun-20 20:03 
AnswerRe: JavaScript slide show works bad on the first page load Pin
Richard Deeming8-Jun-20 22:30
mveRichard Deeming8-Jun-20 22:30 
GeneralRe: JavaScript slide show works bad on the first page load Pin
Hypnonis9-Jun-20 6:33
MemberHypnonis9-Jun-20 6:33 
QuestionJSON object not showing values.. Can someone help Pin
Member 35640766-Jun-20 4:33
MemberMember 35640766-Jun-20 4:33 
GeneralRe: JSON object not showing values.. Can someone help Pin
Richard MacCutchan7-Jun-20 0:50
mveRichard MacCutchan7-Jun-20 0:50 
QuestionPyramid array Pin
Girardi.E30-May-20 0:48
MemberGirardi.E30-May-20 0:48 
AnswerRe: Pyramid array Pin
Richard MacCutchan30-May-20 1:15
mveRichard MacCutchan30-May-20 1:15 
AnswerRe: Pyramid array Pin
DerekT-P30-May-20 2:30
professionalDerekT-P30-May-20 2:30 
As Richard says, you have a 1-dimensional array; but you're populating it with a string representation, and that's all fine.
console.log will display the contents in a single line, that's just how it works. But there's a "downarrow" link next to that single line; click it and the console will show each element on a separate line, illustrating the pyramid shape as you want it.

If you want the pyramid shown directly in the log without further user intervention, as Richard points out you'll need to use a loop to log each element separately (exactly as Richard has written it).
Questionidentify each node with its Id Pin
vikas@prajaktasoftware.com19-May-20 8:57
Membervikas@prajaktasoftware.com19-May-20 8:57 
SuggestionRe: identify each node with its Id Pin
ZurdoDev19-May-20 9:39
mveZurdoDev19-May-20 9:39 
QuestionReturn negative number as 0 Pin
and180y18-May-20 1:46
Memberand180y18-May-20 1:46 
AnswerRe: Return negative number as 0 Pin
Richard MacCutchan18-May-20 2:05
mveRichard MacCutchan18-May-20 2:05 
GeneralRe: Return negative number as 0 Pin
and180y18-May-20 2:27
Memberand180y18-May-20 2:27 
GeneralRe: Return negative number as 0 Pin
Richard MacCutchan18-May-20 2:40
mveRichard MacCutchan18-May-20 2:40 
AnswerRe: Return negative number as 0 Pin
Richard Deeming18-May-20 5:43
mveRichard Deeming18-May-20 5:43 
GeneralRe: Return negative number as 0 Pin
and180y18-May-20 13:10
Memberand180y18-May-20 13:10 
Questiongenerate a mongo bson objectId in angular V7+ Pin
jkirkerx17-May-20 12:51
professionaljkirkerx17-May-20 12:51 
QuestionHow to format the file containing json objects to json array Pin
kjeeva15-May-20 21:53
Memberkjeeva15-May-20 21:53 
AnswerRe: How to format the file containing json objects to json array Pin
Richard MacCutchan15-May-20 22:31
mveRichard MacCutchan15-May-20 22:31 
QuestionMatrix creation using array Pin
Member 1483368915-May-20 10:51
MemberMember 1483368915-May-20 10:51 
AnswerRe: Matrix creation using array Pin
Richard MacCutchan15-May-20 22:17
mveRichard MacCutchan15-May-20 22:17 
QuestionFrom PHP to Javascript Pin
Member 1482984612-May-20 4:18
MemberMember 1482984612-May-20 4:18 
AnswerRe: From PHP to Javascript Pin
Andre Oosthuizen26-May-20 1:30
MemberAndre Oosthuizen26-May-20 1:30 
QuestionJavaScript string printing. Pin
c0d3r1/29-May-20 19:24
Memberc0d3r1/29-May-20 19:24 
AnswerMessage Closed Pin
15-May-20 6:16
MemberMember 1340332915-May-20 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.