Amidst a global pandemic (Covid- 19), I will be sitting quietly like a farm mouse and write a book with a publisher called Packt. The book will be focused on JavaScript interview questions in the form of practical coding questions.
forEach( ), sort( ) and filter( ) for newbies
forEach() ES6 has introduced the forEach() method which allows you to loop through an array. Arrays as you may already know are of the type ‘object’. In contrast to the string,number,boolean, undefined and symbol types which are primitive data types. For example if we console.log the typeof operator to find the typeof array, objectwill be logged, as seen below: [code] const yummies = [‘Ice-cream’,’Cupcake’,’Donut’,’Cupcake’]; console.log(typeof
Easy Peasy Git for Github with clix
Original Question asked by student Is there a way to show that folder structure in git? I’m struggling to visualize how it looks in git and how we would push that structure to git. Are there instructions for how to create the structure on our computers then push it to git? Answer Git is a version control tool. For example when you write an essay
The Learn How to Code Planner
ps: If you just want to download, go here: https://bit.ly/3biXP4j Learning how to code can be overwhelming! Often learners confuse a curriculum with a plan to learn coding. A curriculum is a list of topics on a particular subject for example JavaScript or python. Whereas, a planning involves the steps including the time and energy commitments to finish the curriculum. Common problematic pattern As I
50 #javascript interview questions
References in C++
Definition: A reference variable is a “reference” to another variable. Better definition: A reference variable is just another pointer variable which will take its own space in memory from here References are nothing but constant pointers in C++. A statement int &i = j; will be converted by the compiler to int *const i = &j . Again from here Usage: Declare a reference as such with the
Pointers in C++: The newbies guide
Pre-requisite You know pointers are important so you’re reading this How is data stored? When you declare variables, they are assigned a location in the computer’s memory. This location/address is actually where the value of the variable is stored. Let’s see a small example. You might not understand the code right, now that’s ok. Just pay attention to the output of cout and how it
Header files
“Header files, or .h files, allow related function, method, and class declarations to be collected in one place.”. This is useful as you can group together specific functionality and then export and use it at another place/file to be used by another program. There are 2 file extensions that we deal with “.h” and “.cpp”. The header file will have a “.h” extension whereas, the corresponding functions,
A* Search Algorithm in C++
In short the A* search algorithm lets you find the quickest possible path between 2 nodes. The process of finding a path between the start point and end point is called “Planning”. For robots this is called “Robot Motion Planning”
Enumerated types (Enum) in C++
Enum is a user defined data type in C++ whose value is equal to some user defined values. For example: Enum is useful for switch cases, when we expect a variable to have only one of the possible set of values. For example, we can change the code to:
- « Previous Page
- 1
- 2
- 3
- 4
- 5
- 6
- …
- 16
- Next Page »