Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #23675
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2014-03-25 11:44 -0700 |
| References | <62248b63-802b-4e9c-b3d3-d31c5003a24d@googlegroups.com> <b342062d-0a05-46af-bc2d-0d0aebc7c365@googlegroups.com> |
| Message-ID | <841dca16-a08a-4ba3-ab2b-e37322c64118@googlegroups.com> (permalink) |
| Subject | Re: Expresson evaluation in javascript |
| From | jonas.thornvall@gmail.com |
Den tisdagen den 25:e mars 2014 kl. 19:43:09 UTC+1 skrev jonas.t...@gmail.com: > Den tisdagen den 25:e mars 2014 kl. 19:24:41 UTC+1 skrev jonas.t...@gmail.com: > > > In python i beleive mathematical expression can be directly evaluated, if in correct form. > > > > > > > > > > > > Javascript do not have eval? > > > > > > > > > > > > If not, how do one go ahead evaluate something with two constant operands but where the operator is a variable? > > > > > > > > > > > > z=*; x=3z5 > > > > > > > > > > > > z=/ x=3z3 > > > > > > > > > > > > z=+ x=3z3 > > > > > > > > > > > > z=- x=3z3 > > > > > > > > > > > > > > > > > > Will there be a eval function in future javascript? > > > > It seem a bit tedious to loop throug the string with charAt() putting the operands in an array? And then use str.split to get the operands? > > > > And also the order of evaluation must be correct? > > > > Anyone have another solution? charAt() putting the ***operators ***in an array?
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Expresson evaluation in javascript jonas.thornvall@gmail.com - 2014-03-25 11:24 -0700
Re: Expresson evaluation in javascript jonas.thornvall@gmail.com - 2014-03-25 11:43 -0700
Re: Expresson evaluation in javascript jonas.thornvall@gmail.com - 2014-03-25 11:44 -0700
Re: Expresson evaluation in javascript Danny <dann90038@gmail.com> - 2014-03-25 14:04 -0700
Re: Expresson evaluation in javascript Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2014-03-25 18:40 -0300
Re: Expresson evaluation in javascript Christoph Michael Becker <cmbecker69@arcor.de> - 2014-03-25 23:49 +0100
Re: Expresson evaluation in javascript jonas.thornvall@gmail.com - 2014-03-25 22:43 -0700
Re: Expresson evaluation in javascript jonas.thornvall@gmail.com - 2014-03-25 23:29 -0700
Re: Expresson evaluation in javascript Jim T. <x@y.z> - 2014-03-28 11:48 -0500
Re: Expresson evaluation in javascript jonas.thornvall@gmail.com - 2014-03-28 10:03 -0700
Re: Expresson evaluation in javascript Jim T. <x@y.z> - 2014-03-28 13:12 -0500
Re: Expresson evaluation in javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-03-28 18:33 +0100
Re: Expresson evaluation in javascript jonas.thornvall@gmail.com - 2014-03-28 10:50 -0700
Re: Expresson evaluation in javascript jonas.thornvall@gmail.com - 2014-03-28 10:59 -0700
Re: Expresson evaluation in javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-03-28 20:38 +0100
Re: Expresson evaluation in javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2014-03-29 19:49 -0700
Re: Expresson evaluation in javascript Ed Jay <edMbj@aes-intl.com> - 2014-03-29 10:53 -0700
Re: Expresson evaluation in javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2014-03-29 19:45 -0700
Re: Expresson evaluation in javascript jonas.thornvall@gmail.com - 2014-03-30 09:21 -0700
Re: Expresson evaluation in javascript jonas.thornvall@gmail.com - 2014-03-30 09:24 -0700
Re: Expresson evaluation in javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-03-30 21:19 +0200
Re: Expresson evaluation in javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2014-03-30 14:20 -0700
Re: Expresson evaluation in javascript John Harris <niam@jghnorth.org.uk.invalid> - 2014-03-26 14:58 +0000
Re: Expresson evaluation in javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2014-03-29 19:33 -0700
Re: Expresson evaluation in javascript Norman Peelman <npeelman@cfl.rr.com> - 2014-03-30 05:01 -0400
csiph-web