# Basic Syntax

**URL:** https://forums.creativeclouddeveloper.com/t/basic-syntax/1517
**Category:** UXP Plugin API
**Tags:** plugin, plugin-manager, javascript
**Created:** [December 24, 2019, 2:04am UTC](https://forums.creativeclouddeveloper.com/t/basic-syntax/1517 "2019-12-24T02:04:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![san](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/san/32/701_2.png) [@san](https://forums.creativeclouddeveloper.com/u/san)
#### Post date: [December 24, 2019, 2:04am UTC](https://forums.creativeclouddeveloper.com/t/basic-syntax/1517/1 "2019-12-24T02:04:21Z")

</div>

Could any body help me understanding the basic syntax for creating plugin? . I am a beginner in Javascript and I know the basic syntax of javascript. But in " main.js" file, I am unable to frame the functions of every line of code.  
Is there any suggestion on basic syntax learning for creating xd-plugin

---

<div class="post-metadata">

### Author: ![dennis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/dennis/32/468_2.png) [@dennis](https://forums.creativeclouddeveloper.com/u/dennis)
#### Post date: [December 24, 2019, 9:13am UTC](https://forums.creativeclouddeveloper.com/t/basic-syntax/1517/2 "2019-12-24T09:13:52Z")

</div>

If you want to learn about plugin structure, you should start with [these](https://adobexdplatform.com/plugin-docs/reference/structure/) document section. Also [AdobeXD plugin samples repository](https://github.com/AdobeXD/plugin-samples) has many useful examples on how to start with some [basics](https://github.com/AdobeXD/plugin-samples/tree/master/quick-start) ([step-by-step](https://adobexdplatform.com/plugin-docs/tutorials/quick-start/)).
