Jump to content

Need Help With Javascript Coding


Recommended Posts

Hi guys im totally new to this. Im taking Transaction Processing I for the first time and it is ###### for me, first of all i am a total noob at this and my teacher doesnt teach at all so i am teaching my self. and sorry if i make mistakes on this post ( which is my first post of my life)..... so my question is this what is the javascript code for this particular function (lets call it p1) .... Below is the textarea named ta with the data from the spreadsheet pasted inside. XLdata col 1 col 2 col 3 row sum row 1 11 12 13 36 row 2 21 22 23 66 row 3 31 32 33 96 row 4 41 42 43 126 row 5 51 52 53 156 col sum 155 160 165 480 XLdata col 1 col 2 col 3 row sum row 1 11 12 13 36 row 2 21 22 23 66 row 3 31 32 33 96 row 4 41 42 43 126 row 5 51 52 53 156 col sum 155 160 165 480

  • Like 1
Link to post
Share on other sites

so, you're asking us to do your homework? That's not really what we do. What we will do, is help you, provided you present some code showing some attempt at the issue, and provided you ask specific questions pertaining to a particular issue you are having trouble with.

Link to post
Share on other sites

Javascript code is found between script tags. If the script tags are empty, follow the URL if their src attribute. The activity description pretty much tells you exactly what to do.Parse the input string character by character (using a loop and charCodeAt). If the character isn't special, append it to the output string as is, if it is special then transform it into the indicated tags and append those to the output string.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...