What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-27 08:50:21
3. What are private member variables. in js
function ConstructorCar(initValue) { this.publicMember = initValue; let _privateMember = initValue; //private member this.getPrivateMember = function() { return _privateMember; } this.setPrivateMember = function(v) { _privateMember = v; }}Construc... Add solution -
Other 2022-03-27 08:20:18
basic java interview questions
There are many questions that can be made to test your java knowledge, like the ones below: Explain JDK, JRE and JVM? Explain public static void main(String args[]) in Java Why Java is platform independent? Why Java is not 100% Object-oriented? What are ... Add solution -
Javascript 2022-03-27 07:05:02
queue data structure in javascript 2018
var Queue = (()=>{ const map = new WeakMap(); let _items = [] class Queue{ constructor(...items){ //initialize the items in queue map.set(this, []); _items = map.get(this); // enqueuing the items passed to the construc... Add solution -
Other 2022-03-24 11:10:03
smartInput
from smartinput import Shell, Fore myshell = Shell() #Important: myshell.setcallback(handle_query) #handle_query function was defined in the above section #Optional: myshell.setintitle("Input: ") #defaults to "> " myshell.setouttit... Add solution -
PHP 2022-03-23 17:00:16
kirim email using codeigniter 4
<?php namespace App\Controllers; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; class Kirim_email extends BaseController { public function __construct() &n... Add solution -
Java 2022-03-23 05:55:02
java queue
import java.util.*; Queue<Integer> queue = new LinkedList<Integer>(); // use non-primative types when constructing // to add a value to the back of queue: queue.add(7); // to remove and return front value: int next = queue.remove(); // to ... Add solution -
Javascript 2022-03-23 02:40:39
how to clear text ibput after message sent react native
//you will need to retrieve the ref at your constructor using React.createRef: //At constructor function: this.myTextInput = React.createRef(); //At render function: <TextInput ref={this.myTextInput} /> //And then you can call this.myTextInput.cu... Add solution -
C++ 2022-03-21 17:45:23
worker class c++
#ifndef EMPLOYEE_H #define EMPLOYEE_H #include <string> using namespace std; class Employee { private: string name; // Employee name string number; ... Add solution -
PHP 2022-03-19 11:45:02
shopping cart php pdo mysql ajax
<?php /** * @package Cart class * * @author TechArise Team * * @email [email protected] * */ include("DBConnection.php"); class Cart { protected $db; &... Add solution
Best helpers
Ranking is empty