Click here to Skip to main content
15,890,670 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: JavaScript Pin
Richard MacCutchan1-Dec-17 8:11
mveRichard MacCutchan1-Dec-17 8:11 
GeneralRe: JavaScript Pin
ZurdoDev1-Dec-17 8:41
professionalZurdoDev1-Dec-17 8:41 
GeneralRe: JavaScript Pin
Rhiz Mariel Diesta1-Dec-17 8:52
Rhiz Mariel Diesta1-Dec-17 8:52 
GeneralRe: JavaScript Pin
ZurdoDev1-Dec-17 8:55
professionalZurdoDev1-Dec-17 8:55 
AnswerRe: JavaScript Pin
ZurdoDev1-Dec-17 8:40
professionalZurdoDev1-Dec-17 8:40 
GeneralRe: JavaScript Pin
Nathan Minier4-Dec-17 1:22
professionalNathan Minier4-Dec-17 1:22 
QuestionJavaScript Pin
Rhiz Mariel Diesta1-Dec-17 3:55
Rhiz Mariel Diesta1-Dec-17 3:55 
AnswerRe: JavaScript Pin
Afzaal Ahmad Zeeshan1-Dec-17 4:25
professionalAfzaal Ahmad Zeeshan1-Dec-17 4:25 
There is an answer in the question itself,
Quote:
one variable "nme" this variable mustt have 5 elements

That is an array, and secondly, in JavaScript data(type) is not even there. The following is all needed,
JavaScript
var nme = [
   "one", "two", "three", "four", "five"
];

// Iterate over, or print on the console, that is your part. 
You can work out with other data types, and see how they work (such as having strings, numbers and other objects in a single array).

Array - JavaScript | MDN
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

AnswerRe: JavaScript Pin
Richard MacCutchan1-Dec-17 4:28
mveRichard MacCutchan1-Dec-17 4:28 
AnswerRe: JavaScript Pin
ZurdoDev1-Dec-17 9:08
professionalZurdoDev1-Dec-17 9:08 
GeneralRe: JavaScript Pin
Rhiz Mariel Diesta1-Dec-17 9:58
Rhiz Mariel Diesta1-Dec-17 9:58 
GeneralRe: JavaScript Pin
ZurdoDev1-Dec-17 10:02
professionalZurdoDev1-Dec-17 10:02 
QuestionGetting the Name of the Browser Pin
BobInNJ28-Nov-17 5:50
BobInNJ28-Nov-17 5:50 
AnswerRe: Getting the Name of the Browser Pin
F-ES Sitecore28-Nov-17 6:06
professionalF-ES Sitecore28-Nov-17 6:06 
GeneralRe: Getting the Name of the Browser Pin
mappleleaf29-Nov-17 11:43
mappleleaf29-Nov-17 11:43 
AnswerRe: Getting the Name of the Browser Pin
Richard Deeming28-Nov-17 6:07
mveRichard Deeming28-Nov-17 6:07 
QuestionUsing second variable in ng-repeat Pin
Member 1354340127-Nov-17 0:26
Member 1354340127-Nov-17 0:26 
GeneralUnable to create dialog box Pin
Truck5325-Nov-17 6:51
Truck5325-Nov-17 6:51 
GeneralRe: Unable to create dialog box Pin
Richard MacCutchan25-Nov-17 7:43
mveRichard MacCutchan25-Nov-17 7:43 
GeneralRe: Unable to create dialog box Pin
F-ES Sitecore28-Nov-17 1:32
professionalF-ES Sitecore28-Nov-17 1:32 
Questionlazy-loading on text Pin
Member 1352219414-Nov-17 22:37
Member 1352219414-Nov-17 22:37 
QuestionError Trapping this statement Pin
Member 135080348-Nov-17 9:42
Member 135080348-Nov-17 9:42 
Questionjava code on hospital management Pin
Member 1348211023-Oct-17 23:13
Member 1348211023-Oct-17 23:13 
AnswerRe: java code on hospital management Pin
Richard Deeming24-Oct-17 2:05
mveRichard Deeming24-Oct-17 2:05 
AnswerRe: java code on hospital management Pin
Nathan Minier25-Oct-17 1:24
professionalNathan Minier25-Oct-17 1:24 

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.