Table:
| (In thousands, except per share amounts) | Years ended December 31, |  |
| --- | --- | --- |
|  | 2019 | 2018 |
| BASIC AND DILUTED |  |  |
| Weighted average number of common shares outstanding | 8,844 | 5,884 |
| Net loss attributable to Neonode Inc. | $(5,298) | $(3,060) |
| Net loss per share basic and diluted | $(0.60) | $(0.52) |
Paragraphs:
14. Net Loss Per Share
Basic net loss per common share for the years ended December 31, 2019 and 2018 was computed by dividing the net loss attributable to Neonode Inc. for the relevant period by the weighted average number of shares of common stock outstanding during the year. Diluted loss per common share is computed by dividing net loss attributable to Neonode Inc. for the relevant period by the weighted average number of shares of common stock and common stock equivalents outstanding during the year.
Potential common stock equivalents of approximately 0 and 350,000 outstanding stock warrants, 0 and 11,000 shares issuable upon conversion of preferred stock and 0 and 0 stock options are excluded from the diluted earnings per share calculation for the years ended December 31, 2019 and 2018, respectively, due to their anti-dilutive effect.
Question:
How did the company compute the basic net loss per common share for 2018 and 2019?
Answer: by dividing the net loss attributable to Neonode Inc. for the relevant period by the weighted average number of shares of common stock outstanding during the year