Note that when calling the function, we sent in a newly created Molecule object by writing newĬ(). Going to create a JavaScript function, named alertMessage(). Remembering the alert() function that we used on the previous page, we are Structure and displays the number of atoms and the number of bonds it contains. All data structures defined by the ChemDoodle WebĬomponents library reside in the ChemDoodle.structures package.īefore we continue, let's write a small function in JavaScript that takes a Molecule data These are the data structures that the components inĬhemDoodle Web Components take as input. To begin, let's discuss the data structures that are in play here, the Somehow you will need to get chemical data to these JavaScript functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |