# Would a code like this work?

**URL:** <https://forum.kirupa.com/t/would-a-code-like-this-work/170609>\
**Category:** Uncategorized\
**Created:** [November 28, 2005, 3:28am UTC](https://forum.kirupa.com/t/would-a-code-like-this-work/170609 "2005-11-28T03:28:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [November 28, 2005, 3:28am UTC](https://forum.kirupa.com/t/would-a-code-like-this-work/170609/1 "2005-11-28T03:28:49Z")

</div>

Hye guys im not 100% experienced with js, so i want to know if a code like this would work:

```auto

var fnctnames = new Array();
fnctnames[0] = "brd";
fnctnames[1] = "sp";
Var linknames = new Array();
linknames[0] = "Bread";
linknames[1] = "Soup";
var nots = new Array();
nots[0] = "bred";
nots[1] = "soup";
for (var i = 0; i<10; i++){
var fnctnames* = true;
document.write("&nbsp;&nbsp;<div id="+linknames*+"></div>");
function nots*(){
if(!fnctnames*){
linknames*.innerHTML = "<a href=\"javascript:"+nots*+"();\"><b>"+linknames*+"</b></a><br />Item 1<br />Item 2<br />
nots* = true;
}else{
linknames*.innerHTML = "<a href=\"javascript:"+nots*+"();\"><b>"+linknames*+"</b></a>";
nots* = false
}
}
nots*();
}

```

Please note, this is supposed to create menus, 2 of them with the same value. theyre the same value for now only.
