Is it possible to run multiple lines of Javascript code without entering any interactive shell? -
i newbie @ programming appreciate can provided! making program taking attributes of file (i don't know terminology well, apologize if sounds confusing, similar parsing 'window' of chrome) , saving underneath argument of code.i wondering if possible use javascript code outside of interface such node. know if there method write multiple line code such following in javascript while being outside of interactive shell in order use argument have:
var text= 'thisissomesortofstringwithwordsfromthefileinitnearthebegginingandwordsattheend'; var text2= text.split(/w(.+)/)[1] var list = [] list.push(text) this var text string returned parsing file attributes (something var text = window.document.body) , of above , possibly more code saved under code. if possible, appreciate if there method of running code not isolated environment (not using file name, makes argument unusable) or using command line command accept arguments. have method placed down such !node code search turned negative. there such method or other means of reading javascript allows me use external arguments? thank time , consideration regards question, means lot me!
Comments
Post a Comment