---
title: "Sarthak semwal (@sarthaksmwl) | Hashnode"
description: "Hi there, I'm Sarthak Semwal and I'm a tech enthusiast with a passion for writing about all things technology. I believe that sharing knowledge is the key to..."
url: "https://hashnode.com/@sarthaksmwl"
---

@sarthaksmwl

# Sarthak semwal

@sarthaksmwl · Delhi · Joined April 2023

### [JavaScript Basic Syntax](https://sarthaksmwl.hashnode.dev/javascript-basic-syntax?utm_source=hashnode&utm_medium=feed)

re! Here’s a detailed explanation of the basic syntax of JavaScript to help you get started with programming. 1. Variables Variables are used to store data values. In JavaScript, you can declare variables using let, const, or var. let: Allows you to...

3 min read · [sarthaksmwl.hashnode.dev](https://sarthaksmwl.hashnode.dev/javascript-basic-syntax?utm_source=hashnode&utm_medium=feed)

[Oct 20, 2024](https://hashnode.com/posts/javascript-basic-syntax/6714cb8b0b0b1713c9c0b288)

### [Cheat sheet](https://sarthaksmwl.hashnode.dev/cheat-sheet?utm_source=hashnode&utm_medium=feed)

Sure! Here’s a concise JavaScript cheatsheet that covers the basics and some commonly used features. JavaScript Cheatsheet 1. Variables Declaration: var name = "Alice"; // Old way, function/global scoped let age = 25; // Block scoped, can...

3 min read · [sarthaksmwl.hashnode.dev](https://sarthaksmwl.hashnode.dev/cheat-sheet?utm_source=hashnode&utm_medium=feed)

[Oct 20, 2024](https://hashnode.com/posts/cheat-sheet/6714b247c44b2958b48bf763)

### [Manipulating DOM Elements with JavaScript](https://sarthaksmwl.hashnode.dev/manipulating-dom-elements-with-javascript?utm_source=hashnode&utm_medium=feed)

DOM (Document Object Model) manipulation refers to using JavaScript to dynamically interact with and modify the content, structure, or style of HTML elements on a webpage. The DOM represents the page so programs (such as JavaScript) can interact with...

5 min read · [sarthaksmwl.hashnode.dev](https://sarthaksmwl.hashnode.dev/manipulating-dom-elements-with-javascript?utm_source=hashnode&utm_medium=feed)

[Oct 20, 2024](https://hashnode.com/posts/manipulating-dom-elements-with-javascript/67149bae06d674509b0a7f58)

### [Sets In C++](https://sarthaksmwl.hashnode.dev/sets-in-c?utm_source=hashnode&utm_medium=feed)

In C++, std::set and std::unordered\_set are associative containers that store unique elements, meaning no duplicate values are allowed. They are particularly useful when you need to keep a collection of items where order doesn't matter, but uniquenes...

5 min read · [sarthaksmwl.hashnode.dev](https://sarthaksmwl.hashnode.dev/sets-in-c?utm_source=hashnode&utm_medium=feed)

[Aug 15, 2024](https://hashnode.com/posts/sets-in-c/66bda5591b5c93e0d2918fab)

### [Vectors in C++](https://sarthaksmwl.hashnode.dev/vectors-in-c?utm_source=hashnode&utm_medium=feed)

std::vector is one of the most commonly used containers in C++ because it provides a dynamic array that can grow and shrink as needed. Here's a detailed explanation of the various functions and operations associated with std::vector: 1. Creating a Ve...

5 min read · [sarthaksmwl.hashnode.dev](https://sarthaksmwl.hashnode.dev/vectors-in-c?utm_source=hashnode&utm_medium=feed)

[Aug 15, 2024](https://hashnode.com/posts/vectors-in-c/66bda48a58ecf7720017c059)
