In Progress

quick javascript project

given the following string return me a series of javascript objects as follows:

the object:

function Ingredient(){

[url removed, login to view] = "";

[url removed, login to view] = [];

[url removed, login to view] = 0;

}

var txt = "Ham (12%)(Pork leg, salt),Cheese & Apricot Bibby(Cheddar Cheese(Milk, Salt, Enzimes),Apricots), Mayonnaise(Egg, Vegetable Oil)";

var ingredientsarray = ConvertMe(txt);

ConvertMe(txt){

//your bit

}

result in DOM

ingredientsarray

[0] Ingredient

description='Ham'

subingredients

[0] Pork Leg

[1] Salt

percentage = 12

[1] Ingredient

description = 'Cheese & Apricot Bibby'

subingredients

[0] Cheese

description = 'Cheese'

subingredients

[0] Milk

[1] Salt

[2] Enzimes

[1] Apricots

etc....

Skills: Algorithm, Business Analysis, Javascript

See more: algorithmic function, Salt, mayonnaise, Egg, dom, apricot, algorithmic, javascript etc, amp javascript, dom javascript, javascript amp, bit project, object project, quick function, string javascript, javascript dom, string function, vegetable, function project, javascript string, Javascript function, result javascript, var result javascript, javascript return, javascript project

About the Employer:
( 5 reviews ) Horbury, United Kingdom

Project ID: #555271

Awarded to:

techsolsoftwares

i can do this job.

$30 USD in 1 day
(15 Reviews)
3.7

6 freelancers are bidding on average $35 for this job

barca2045

Your "var txt" isn't clear enough. PM me the right raw text or an array, and I'll give you the solution.

$40 USD in 0 days
(33 Reviews)
5.1
kirill533

I will do it with full unit test suite. But good work requires time.

$50 USD in 0 days
(5 Reviews)
4.0
mgauthier

Hi, I can do this, no problem. It looks like there is an error in the sample output you provided. PM me and I can show you where.

$30 USD in 2 days
(2 Reviews)
3.6
Aramix

Ready to work! Thanks!

$30 USD in 1 day
(4 Reviews)
2.3
sachinnagpal

This is simple. i can do it in a few minutes..

$30 USD in 1 day
(0 Reviews)
0.0