Skip to content

Instantly share code, notes, and snippets.

View Ramanpreet6262's full-sized avatar
:octocat:
Focusing

Ramanpreet Singh Ramanpreet6262

:octocat:
Focusing
View GitHub Profile
@Ramanpreet6262
Ramanpreet6262 / demo.js
Created October 8, 2021 11:52
Private methods in class in JS
class Person {
age;
// private properties
#id;
#name;
print() {
console.log(`${this.#id} and ${this.#name} and ${this.age}`);
}
@Ramanpreet6262
Ramanpreet6262 / countries.json
Created January 17, 2021 04:34 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@Ramanpreet6262
Ramanpreet6262 / countrydropdown.html
Created January 17, 2021 04:23 — forked from danrovito/countrydropdown.html
HTML Country Select Dropdown List
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span>
<select id="country" name="country" class="form-control">
<option value="Afghanistan">Afghanistan</option>
<option value="Åland Islands">Åland Islands</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>