Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i m creating shortcut lang program, but code doesnt work, i m beginner..

What I have tried:

d = document;
o = Object;
p = prototype;
t = this;
o.p.w = f w(markUp)
{
t.write(markUp);
};
d.w("hello");
/* somehow my code doesnt work any solution */
Posted
Updated 30-Jul-16 6:16am
Comments
prasad sawant 30-Jul-16 10:53am    
f = function;

i forgot to assign there.
Patrice T 30-Jul-16 11:58am    
Use Improve question to update your question.
Richard MacCutchan 30-Jul-16 11:13am    
Why have you posted this same question a second time? If you need to add more information then please edit your original.
prasad sawant 1-Aug-16 6:51am    
how to delete or edit previous post question on this website ?
Richard MacCutchan 1-Aug-16 6:57am    
Please use the Improve question link above and add all the relevant information to your question. You can delete the old question by using the delete link.

1 solution

Quote:
i m creating shortcut lang program, but code doesn't work

your code doesn't work because you need a functionality similar to the C preprocessor which is not part of the language.

You will have to find a piece of code that will do the same as the preprocessor.

One possibility is to have code (php or C#)on server side to preprocess your js file.

You have a lot of search ahead to find a solution that fit your needs.
 
Share this answer
 
Comments
prasad sawant 30-Jul-16 14:00pm    
i m beginner, i dont know anything well, i dont know this websites rule, i just want answer, i check some websites to know the code well like w3schools and google, here i found some answers with great explanation, my questions are different, just check them, i m making 3 programs one is short language program, and others i cant talk here, so i need some codes and explanations also.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900