Em Andamento

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....

Habilidades: Algoritmo, Análise de Negócios, Javascript

Ver mais: 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

Acerca do Empregador:
( 5 comentários ) Horbury, United Kingdom

ID do Projeto: #555271

Premiar a:

techsolsoftwares

i can do this job.

$30 USD em 1 dia
(15 Avaliações)
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 dias
(33 Comentários)
5.1
kirill533

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

$50 USD in 0 dias
(5 Comentários)
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 dias
(2 Comentários)
3.6
Aramix

Ready to work! Thanks!

$30 USD em 1 dia
(4 Comentários)
2.3
sachinnagpal

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

$30 USD em 1 dia
(0 Comentários)
0.0